Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Integration Builder Multi Trigger Flow Assets
{
"id": 62531,
"name": "MultiTrigger Calling Flow 1 - Manual",
"debugLoggingExpires": "2021-09-16T01:56:56Z",
"userId": 21107,
"accountId": 18281,
"createdDate": "2021-09-15T17:45:57Z",
"steps": [{
"id": 569470,
"onSuccess": ["triggerMainFlow"],
"onFailure": [],
"name": "prepareTriggerMainFlow",
"type": "script",
"properties": {
"body": "let body = {\n parentTriggerType: 'manual'\n};\n\ndone({body});"
}
}, {
"id": 569471,
"onSuccess": [],
"onFailure": [],
"name": "triggerMainFlow",
"type": "request",
"properties": {
"api": "/formulas/instances/${config.mainFlowInstanceId}/executions",
"method": "POST",
"body": "${steps.prepareTriggerMainFlow.body}"
}
}],
"triggers": [{
"id": 51681,
"onSuccess": ["prepareTriggerMainFlow"],
"onFailure": [],
"type": "manual",
"async": true,
"active": true,
"name": "trigger",
"properties": {}
}],
"engine": "v3",
"active": true,
"debugLoggingEnabled": true,
"singleThreaded": false,
"configuration": [{
"id": 99880,
"key": "mainFlowInstanceId",
"name": "mainFlowInstanceId",
"type": "value",
"required": true
}]
}
{
"id": 62532,
"name": "MultiTrigger Calling Flow 2 - Schedule",
"userId": 21107,
"accountId": 18281,
"createdDate": "2021-09-15T18:04:31Z",
"steps": [{
"id": 569472,
"onSuccess": ["triggerMainFlow"],
"onFailure": [],
"name": "prepareTriggerMainFlow",
"type": "script",
"properties": {
"body": "let body = {\n parentTriggerType: 'schedule'\n};\n\ndone({body});"
}
}, {
"id": 569473,
"onSuccess": [],
"onFailure": [],
"name": "triggerMainFlow",
"type": "request",
"properties": {
"api": "/formulas/instances/${config.mainFlowInstanceId}/executions",
"body": "${steps.prepareTriggerMainFlow.body}",
"method": "POST"
}
}],
"triggers": [{
"id": 51683,
"onSuccess": ["prepareTriggerMainFlow"],
"onFailure": [],
"type": "scheduled",
"async": true,
"active": true,
"name": "trigger",
"properties": {
"allowConcurrentExecutions": "true",
"cron": "0 0/1 * * * ? *"
}
}, {
"id": 51682,
"onSuccess": ["prepareTriggerMainFlow"],
"onFailure": [],
"type": "manual",
"async": true,
"active": false,
"name": "trigger",
"properties": {}
}],
"engine": "v3",
"active": true,
"debugLoggingEnabled": false,
"singleThreaded": false,
"configuration": [{
"id": 99881,
"key": "mainFlowInstanceId",
"name": "mainFlowInstanceId",
"type": "value",
"required": true
}]
}
{
"id": 62530,
"name": "MultiTrigger Main Flow",
"debugLoggingExpires": "2021-09-16T01:56:53Z",
"userId": 21107,
"accountId": 18281,
"createdDate": "2021-09-15T17:28:26Z",
"steps": [{
"id": 569468,
"onSuccess": [],
"onFailure": [],
"name": "consoleLog",
"type": "script",
"properties": {
"body": "console.log(trigger);\ndone({});"
}
}],
"triggers": [{
"id": 51680,
"onSuccess": ["consoleLog"],
"onFailure": [],
"type": "manual",
"async": true,
"active": true,
"name": "trigger",
"properties": {}
}],
"engine": "v3",
"active": true,
"debugLoggingEnabled": true,
"singleThreaded": false,
"configuration": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment