Go Back
Canvas - Update SIS user id
Publisher
:
Run In Lingk
Description
This recipe enables you to update data from a Canvas
Browse the knowledge base
Twitter
E-Mail
# _____ _ _____ __ # | __ \ (_) |_ _| / _| # | |__) |___ ___ _ _ __ ___ | | _ __ | |_ ___ # | _ // _ \/ __| | '_ \ / _ \ | | | '_ \| _/ _ \ # | | \ \ __/ (__| | |_) | __/ _| |_| | | | || (_) | # |_| \_\___|\___|_| .__/ \___| |_____|_| |_|_| \___/ # | | # |_| # Project Name - Canvas - Update SIS user id # Recipe URL - https://app.lingk.io/a/10932/tf/19700 # Description - # This recipe enables you to update data from a Canvas # Systems - Canvas # Connectors - Canvas # Data Flows - Single Direction # Connection Type - API # Add Recipe notes / Change log information here! # _____ _ # / ____| | | # | | ___ _ __ _ __ ___ ___| |_ ___ _ __ ___ # | | / _ \| '_ \| '_ \ / _ \/ __| __/ _ \| '__/ __| # | |___| (_) | | | | | | | __/ (__| || (_) | | \__ \ # \_____\___/|_| |_|_| |_|\___|\___|\__\___/|_| |___/ # # CONNECTORS specify what data will be pulled into the in-memory database during processing connectors: # Configure Canvas connector in your Environment before running this recipe # Canvas Setup - https://help.lingk.io/en/articles/263-canvas-setup-guide ###### Start - JSON connectors ###### - name: sourceUsers type: json properties: jsonObject: | [ { "id": 1169, "sis_user_id": "sfstu_0027287" } , { "id": 1252, "sis_user_id": "sfstu_0027306" } ] ###### End - JSON connectors ###### ###### Start - Canvas Writer connectors ###### - name: loginDetails type: canvasReader delayedRead: true parameterizedBy: sourceUsers properties: path: /api/v1/users/{{var.id}}/logins ###### End - Canvas Writer connectors ###### ###### Start - Canvas Writer connectors ###### - name: userWriter type: canvasWriter onError: continue properties: path: /api/v1/accounts/1/logins/{{var.id}} ###### End - Canvas Writer connectors ###### # _____ _ _ _ # / ____| | | | | | # | (___ | |_ __ _| |_ ___ _ __ ___ ___ _ __ | |_ ___ # \___ \| __/ _` | __/ _ \ '_ ` _ \ / _ \ '_ \| __/ __| # ____) | || (_| | || __/ | | | | | __/ | | | |_\__ \ # |_____/ \__\__,_|\__\___|_| |_| |_|\___|_| |_|\__|___/ # STATEMENTS specify how the data should be processed while in memory statements: #******************************************************************** D I S C L A I M E R *********************************************************************************************** # * # Note that in an effort to keep recipes optimized for DPH (Data Processing Hours), print statements should be commented out after development has concluded for a recipe. * # For more information on DPH optimization, please visit the following help article - https://help.lingk.io/en/articles/212-minimizing-data-processing-hours-on-the-lingk-platform * # * #******************************************************************** D I S C L A I M E R *********************************************************************************************** - statement: refresh loginDetails #- statement: print loginDetails - statement: (userLoginData) => select login.id, named_struct("sis_user_id", json.sis_user_id ) login from loginDetails login join sourceUsers json on (json.id = login.user_id) #- statement: print userLoginData - statement: (results,failures) => UPDATE userLoginData INTO userWriter #- statement: print results #- statement: print failures
Learning Stream Reader Example
PeopleSoft to Salesforce: Application Sync