cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Call another existing workflow from within a new workflow

AgataWlodarczyk
Community Team
Community Team

Can I call another existing workflow from within my new workflow? 

When passion meets people magic and innovation happen.
4 REPLIES 4

michaelwinkler
Dynatrace Advisor
Dynatrace Advisor

Yes, triggering a workflow from within a workflow is possible, currently via the automation SDKs and APIs.

On the roadmap is the concept of sub-workflows which can be added as tasks. 

Michael

HI.

Can you give an example of how a workflow could trigger another workflow? 

Does some task workflow somehow call another one?

Thank you

 

Hi

Yes, currently you can use a workflow task like "HTTP request" (calling the workflow API) or "Run Javascript" (adding the Automation SDK). 

On the roadmap we have the concept of subworkflows as well. We'll keep you posted.

Michael

Hi Steven,

I belive your looking for the following documentation to run via Javascript (https://developer.dynatrace.com/develop/sdks/client-automation/#runworkflow) and example of how to use this function would be:

import { workflowsClient } from "@dynatrace-sdk/client-automation";

const data = await workflowsClient.runWorkflow({
id: "...",
body: {},
});

where id is the UUID of the workflow you want to run

Featured Posts