Understanding how run workflow works
You can call a workflow from another workflow by adding the Run Workflow action on canvas. Configure details on canvas.
Procedure
- Webhook URL - Select or specify the ID of the webhook-enabled workflow you want to run using this action. When you specify the ID of the webhook-enabled workflow, the webhook payload that is associated with it is automatically rendered as an input form.
- Items - Under the item object, you see the input fields that are associated with the webhook payload that is provided by you for the selected webhook-enabled workflow.
- Delay - Enter the time interval (in seconds) by which you want to delay the workflow execution. This value must be in the range of 1-900. For example, if you want to delay the workflow execution by 2 minutes, enter 120 as an input for this field. This field is ignored if the value for Sync field is set to True. If the workflow you are calling contains a tested Return Data on Sync Webhook action, you see the sync field in the form, which you can set to true or false according to your requirements.
- Sync - Specify whether you want to run this workflow in sync. The
value for this field must be set to True when you expect the selected
webhook-enabled workflow to return any data. Note: While testing Run Workflow, if it starts any workflow synchronously or asynchronously, then the transaction is counted for the child workflow execution.
- Click Next, alternatively Test the action.
- Click Done.