<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Calling another existing workflow from within my new workflow in Automations</title>
    <link>https://community.dynatrace.com/t5/Automations/Call-another-existing-workflow-from-within-a-new-workflow/m-p/226913#M112</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Yes, currently you can use a workflow task like "HTTP request" (calling the workflow API) or "Run Javascript" (adding the Automation SDK).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On the roadmap we have the concept of subworkflows as well. We'll keep you posted.&lt;/P&gt;</description>
    <pubDate>Sun, 29 Oct 2023 10:23:00 GMT</pubDate>
    <dc:creator>michaelwinkler</dc:creator>
    <dc:date>2023-10-29T10:23:00Z</dc:date>
    <item>
      <title>Call another existing workflow from within a new workflow</title>
      <link>https://community.dynatrace.com/t5/Automations/Call-another-existing-workflow-from-within-a-new-workflow/m-p/212552#M109</link>
      <description>&lt;P&gt;&lt;SPAN class="TextRun SCXW25509752 BCX0" data-contrast="auto"&gt;&lt;SPAN class="NormalTextRun SCXW25509752 BCX0"&gt;Can I call another existing workflow from within my new workflow?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="EOP SCXW25509752 BCX0" data-ccp-props="{}"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 11:46:15 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Call-another-existing-workflow-from-within-a-new-workflow/m-p/212552#M109</guid>
      <dc:creator>AgataWlodarczyk</dc:creator>
      <dc:date>2023-07-20T11:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calling another existing workflow from within my new workflow</title>
      <link>https://community.dynatrace.com/t5/Automations/Call-another-existing-workflow-from-within-a-new-workflow/m-p/212554#M110</link>
      <description>&lt;P&gt;&lt;SPAN class="TextRun SCXW75915645 BCX0" data-contrast="auto"&gt;&lt;SPAN class="NormalTextRun SCXW75915645 BCX0"&gt;Yes, triggering a workflow from within a workflow is possible, currently via the &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="TextRun Highlight SCXW75915645 BCX0" data-contrast="auto"&gt;&lt;SPAN class="NormalTextRun SCXW75915645 BCX0"&gt;automation SDKs and APIs&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="TextRun SCXW75915645 BCX0" data-contrast="auto"&gt;&lt;SPAN class="NormalTextRun SCXW75915645 BCX0"&gt;. &lt;BR /&gt;&lt;BR /&gt;On the roadmap is the concept of sub-workflows which can be added as tasks.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 07:31:33 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Call-another-existing-workflow-from-within-a-new-workflow/m-p/212554#M110</guid>
      <dc:creator>michaelwinkler</dc:creator>
      <dc:date>2023-05-18T07:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Calling another existing workflow from within my new workflow</title>
      <link>https://community.dynatrace.com/t5/Automations/Call-another-existing-workflow-from-within-a-new-workflow/m-p/226898#M111</link>
      <description>&lt;P&gt;HI.&lt;/P&gt;&lt;P&gt;Can you give an example of how a workflow could trigger another workflow?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does some task workflow somehow call another one?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2023 20:23:29 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Call-another-existing-workflow-from-within-a-new-workflow/m-p/226898#M111</guid>
      <dc:creator>Stephen1_Lee</dc:creator>
      <dc:date>2023-10-27T20:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Calling another existing workflow from within my new workflow</title>
      <link>https://community.dynatrace.com/t5/Automations/Call-another-existing-workflow-from-within-a-new-workflow/m-p/226913#M112</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Yes, currently you can use a workflow task like "HTTP request" (calling the workflow API) or "Run Javascript" (adding the Automation SDK).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On the roadmap we have the concept of subworkflows as well. We'll keep you posted.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Oct 2023 10:23:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Call-another-existing-workflow-from-within-a-new-workflow/m-p/226913#M112</guid>
      <dc:creator>michaelwinkler</dc:creator>
      <dc:date>2023-10-29T10:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calling another existing workflow from within my new workflow</title>
      <link>https://community.dynatrace.com/t5/Automations/Call-another-existing-workflow-from-within-a-new-workflow/m-p/255976#M1784</link>
      <description>&lt;P&gt;Hi Steven,&lt;BR /&gt;&lt;BR /&gt;I belive your looking for the following documentation to run via Javascript (&lt;A href="https://developer.dynatrace.com/develop/sdks/client-automation/#runworkflow)" target="_blank" rel="noopener"&gt;https://developer.dynatrace.com/develop/sdks/client-automation/#runworkflow)&lt;/A&gt;&amp;nbsp;and example of how to use this function would be:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;import&lt;/SPAN&gt; &lt;SPAN class=""&gt;{&lt;/SPAN&gt;&lt;SPAN class=""&gt; workflowsClient &lt;/SPAN&gt;&lt;SPAN class=""&gt;}&lt;/SPAN&gt; &lt;SPAN class=""&gt;from&lt;/SPAN&gt; &lt;SPAN class=""&gt;"@dynatrace-sdk/client-automation"&lt;/SPAN&gt;&lt;SPAN class=""&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;const&lt;/SPAN&gt;&lt;SPAN class=""&gt; data &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;await&lt;/SPAN&gt;&lt;SPAN class=""&gt; workflowsClient&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;runWorkflow&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;id&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;"..."&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;body&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;{&lt;/SPAN&gt;&lt;SPAN class=""&gt;}&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;}&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;where id is the UUID of the workflow you want to run&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 00:10:37 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Call-another-existing-workflow-from-within-a-new-workflow/m-p/255976#M1784</guid>
      <dc:creator>lee-pritchard</dc:creator>
      <dc:date>2024-09-17T00:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calling another existing workflow from within my new workflow</title>
      <link>https://community.dynatrace.com/t5/Automations/Call-another-existing-workflow-from-within-a-new-workflow/m-p/272925#M2076</link>
      <description>&lt;P&gt;Hi Team,&lt;BR /&gt;I tried running above given snippet in javascript task of workflow but getting below error. Please help me on this.&lt;BR /&gt;&lt;BR /&gt;An error of type UNCAUGHT_EXCEPTION occurred in an imported library: 404: Not found.&lt;BR /&gt;at &lt;STRONG&gt;ActionExecutionsClient.getActionExecutionLog (f&lt;/STRONG&gt;ile:///opt/sdk_modules/@dynatrace-sdk/client-automation/esm/index.js:388:17)&lt;BR /&gt;at eventLoopTick (ext:core/01_core.js:175:7)&lt;BR /&gt;at async default (file:///script.ts:13:3)&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 12:44:39 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Call-another-existing-workflow-from-within-a-new-workflow/m-p/272925#M2076</guid>
      <dc:creator>heramb_sawant</dc:creator>
      <dc:date>2025-03-19T12:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calling another existing workflow from within my new workflow</title>
      <link>https://community.dynatrace.com/t5/Automations/Call-another-existing-workflow-from-within-a-new-workflow/m-p/287609#M2388</link>
      <description>&lt;P&gt;This works for me if you use this code, but there is still an issue that you need to wait until the workflow completes and poll for the output of the last task, If I have the solution for this I will post it, meanwhile here is the working code, when you run it you will code the output of the workflow that is in a running mode.&amp;nbsp;&lt;/P&gt;&lt;P&gt;import { execution } from '@dynatrace-sdk/automation-utils';&lt;BR /&gt;import { workflowsClient } from "@dynatrace-sdk/client-automation";&lt;/P&gt;&lt;P&gt;export default async function () {&lt;BR /&gt;// Define the body with input parameters&lt;BR /&gt;const body = {&lt;BR /&gt;input: {&lt;BR /&gt;display_id: "PROBLEM-ID"&lt;BR /&gt;},&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;// Run the workflow with the defined body&lt;BR /&gt;const data = await workflowsClient.runWorkflow({&lt;BR /&gt;id: "f8888104-3105-464f-bd26-db404f8f73e8",&lt;BR /&gt;body: body,&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;console.log("Workflow run response:", data);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2025 10:07:19 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Call-another-existing-workflow-from-within-a-new-workflow/m-p/287609#M2388</guid>
      <dc:creator>MarwanC</dc:creator>
      <dc:date>2025-10-10T10:07:19Z</dc:date>
    </item>
  </channel>
</rss>

