Run Subflow or HTTP Request - What should I use when?
Not so long ago we introduced the Run Subflow action, and we've received some questions about its relationship to the existing HTTP Request action. While both can initiate other Zenphi flows, their purpose differ. Here's a quick overview:
Run Subflow: The Run Subflow action operates within your Zenphi workspace. They allow you to trigger a flow within the same workspace. This is ideal for creating modular automations. Consider building reusable flow components and integrating them as subflows for a more organized and efficient workflow design, and reducing maintenance effort.
HTTP Request: The HTTP Request action provides connectivity beyond your immediate workspace. It can trigger Zenphi flows in any workspace within or outside your organization (given appropriate permissions). And the HTTP Request action interacts with any system possessing an API. Need to update an external database or send notifications via a third-party service? The HTTP Request action is the appropriate tool.
Synchronous and Asynchronous Execution: Both Run Subflow and HTTP Requests offer execution flexibility. You can choose between asynchronous ("fire and forget" – start the other flow and proceed immediately) and synchronous ("fire and wait" – pause the current flow until the other flow completes, with the option to retrieve results).
In summary, use Run Subflow for operations within your Zenphi workspace. For connections to other workspaces or external systems, the HTTP Request action is the solution.