This topic was automatically generated from Slack. You can find the original thread here.
is it possible to call a workflow, from another workflow, using axios?
This topic was automatically generated from Slack. You can find the original thread here.
is it possible to call a workflow, from another workflow, using axios?
Yes, it’s possible to call a workflow from another workflow using axios. To do this, you’ll need the endpoint URL of the workflow you want to call. You can find the endpoint URL in the “Trigger” section of the target workflow. Here’s an example of how to call a workflow using axios in a Pipedream component: import { axios } from "@pipedream/platform"; export default defineComponent({ props: { targetWorkflowURL: { type: "string", label: "Target Workflow URL", }, }, async run({ $ }) { const response = await axios($, { method: "POST", url: this.targetWorkflowURL, data: { // Include any data you want to send to the target workflow }, }); return response; }, });
Replace targetWorkflowURL
with the endpoint URL of the workflow you want to call.
what is the difference between import axios from pipedream/platform or a generic import like for all other packages?
You can also use the generic HTTP action to call your workflow URL.