-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathnestedLoops.json
More file actions
1 lines (1 loc) · 1.73 KB
/
Copy pathnestedLoops.json
File metadata and controls
1 lines (1 loc) · 1.73 KB
1
{"id":41889,"name":"nestedLoops","debugLoggingExpires":"2020-11-14T02:55:23Z","userId":8584,"accountId":7612,"createdDate":"2020-11-13T18:46:20Z","steps":[{"id":445708,"onSuccess":["loopThroughInvoiceLines"],"onFailure":[],"name":"aggregator","type":"script","properties":{"body":"let arr = steps.aggregator ? steps.aggregator.arr : [];\n\narr.push(steps.loopThroughInvoiceLines.entry.amount)\n\ndone({\n arr: arr\n})"}},{"id":445684,"onSuccess":["loopThroughInvoices"],"onFailure":[],"name":"getInvoices","type":"elementRequest","properties":{"api":"/invoices","query":"${steps.makePaginationQuery.pagination}","method":"GET","elementInstanceId":"${config.QBOInstance}"}},{"id":445709,"onSuccess":[],"onFailure":[],"name":"gracefulExit","type":"script","properties":{"body":"done();"}},{"id":445710,"onSuccess":["aggregator"],"onFailure":["loopThroughInvoices"],"name":"loopThroughInvoiceLines","type":"loop","properties":{"list":"${steps.loopThroughInvoices.entry.line}"}},{"id":445707,"onSuccess":["loopThroughInvoiceLines"],"onFailure":["gracefulExit"],"name":"loopThroughInvoices","type":"loop","properties":{"list":"${steps.getInvoices.response.body}"}},{"id":445685,"onSuccess":["getInvoices"],"onFailure":[],"name":"makePaginationQuery","type":"script","properties":{"body":"let pageInfo = {\"pageSize\": 3}\n\ndone({\"pagination\":pageInfo})"}}],"triggers":[{"id":38003,"onSuccess":["makePaginationQuery"],"onFailure":[],"type":"manual","async":true,"name":"trigger","properties":{}}],"engine":"v3","active":true,"singleThreaded":false,"debugLoggingEnabled":false,"configuration":[{"id":82541,"key":"QBOInstance","name":"QBOInstance","type":"elementInstance","description":"This is the QBO element that you will be retrieving invoices from. ","required":true}]}