-
-
Save lbrenman/9fd1838643526e18e694dd70c2977f47 to your computer and use it in GitHub Desktop.
How to Loop Over a Variable In Integration Builder (assets)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"id":27126,"name":"LoopTest","userId":21107,"accountId":18281,"createdDate":"2019-06-20T18:58:43Z","steps":[{"id":177630,"onSuccess":["looper"],"onFailure":[],"name":"consoleLog3","type":"script","properties":{"body":"console.log(steps.getSFDCAccounts.response.body);\n\n// config.list = ['1','2','3'];\n\nconfig.list = steps.getSFDCAccounts.response.body;"}},{"id":177635,"onSuccess":["looper"],"onFailure":[],"name":"consoleLogEntry","type":"script","properties":{"body":"console.log(steps.looper.entry);"}},{"id":177629,"onSuccess":[],"onFailure":[],"name":"consoleLogExit","type":"script","properties":{"body":"console.log('Done');"}},{"id":177628,"onSuccess":["consoleLogEntry"],"onFailure":[],"name":"consoleLogIndex","type":"script","properties":{"body":"console.log(steps.looper.index);"}},{"id":177624,"onSuccess":["looper"],"onFailure":[],"name":"getSFDCAccounts","type":"elementRequest","properties":{"elementInstanceId":"${config.sfdc}","method":"GET","api":"/accounts"}},{"id":177627,"onSuccess":["consoleLogIndex"],"onFailure":["consoleLogExit"],"name":"looper","type":"loop","properties":{"list":"${steps.getSFDCAccounts.response.body}"}}],"triggers":[{"id":24103,"onSuccess":["getSFDCAccounts"],"onFailure":[],"type":"event","async":true,"name":"trigger","properties":{"elementInstanceId":"${config.sfdc}"}}],"engine":"v3","active":true,"singleThreaded":false,"debugLoggingEnabled":true,"configuration":[{"id":48100,"key":"sfdc","name":"sfdc","type":"elementInstance","required":true}]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment