<?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: Can we run workflow in loop in Automations</title>
    <link>https://community.dynatrace.com/t5/Automations/Run-workflows-in-a-loop/m-p/284084#M2321</link>
    <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/46340"&gt;@heramb_sawant&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’m not sure I fully understand what you mean.&lt;/P&gt;&lt;P&gt;You’re talking about a “workflow 1” and a “workflow 2,” whereas I’m referring to "tasks" within the same workflow.&lt;/P&gt;&lt;P&gt;In my case, you run check-result on the previous task name, which returns the JSON.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Mon, 18 Aug 2025 15:05:16 GMT</pubDate>
    <dc:creator>AurelienGravier</dc:creator>
    <dc:date>2025-08-18T15:05:16Z</dc:date>
    <item>
      <title>Run workflows in a loop</title>
      <link>https://community.dynatrace.com/t5/Automations/Run-workflows-in-a-loop/m-p/283284#M2315</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I have workflow with 4&amp;nbsp; tasks that run one after another . Currently this workflow task's various information for particular application , I want to run the same workflow for multiple applications.&amp;nbsp; How can I run it in loop or is there any workaround.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;heramb Sawant&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Dec 2025 11:24:08 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Run-workflows-in-a-loop/m-p/283284#M2315</guid>
      <dc:creator>heramb_sawant</dc:creator>
      <dc:date>2025-12-15T11:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can we run workflow in loop</title>
      <link>https://community.dynatrace.com/t5/Automations/Run-workflows-in-a-loop/m-p/283285#M2316</link>
      <description>&lt;P&gt;Check out running a Workflow from a Workflow (sub-Workflows):&amp;nbsp;&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/analyze-explore-automate/workflows/default-workflow-actions/run-workflow-action" target="_blank"&gt;Run workflow action for Workflows — Dynatrace Docs&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2025 12:25:45 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Run-workflows-in-a-loop/m-p/283285#M2316</guid>
      <dc:creator>StrangerThing</dc:creator>
      <dc:date>2025-08-07T12:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Can we run workflow in loop</title>
      <link>https://community.dynatrace.com/t5/Automations/Run-workflows-in-a-loop/m-p/283310#M2317</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/46340"&gt;@heramb_sawant&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;First of all, add a task to generate your applications list.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Afterwards, create a child task and use the Loop Task option by adding the List related to the previous task and use a item variable name :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AurelienGravier_1-1754580653566.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/29442i079D5DCB1B58E333/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AurelienGravier_1-1754580653566.png" alt="AurelienGravier_1-1754580653566.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;And finally you can use&amp;nbsp;&lt;SPAN&gt;{{ _.item }} or&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;in case of the Run JavaScript action, you can use&amp;nbsp;&lt;A class="" href="https://dt-url.net/run-javascript-task-loop" target="_blank" rel="noopener noreferrer"&gt;loopItem&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;function&amp;nbsp;&lt;/SPAN&gt;to access the item in each iteration :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AurelienGravier_2-1754580758854.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/29443iF23A239A3E4354CD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AurelienGravier_2-1754580758854.png" alt="AurelienGravier_2-1754580758854.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards Aurélien.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 07 Aug 2025 15:32:57 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Run-workflows-in-a-loop/m-p/283310#M2317</guid>
      <dc:creator>AurelienGravier</dc:creator>
      <dc:date>2025-08-07T15:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: Can we run workflow in loop</title>
      <link>https://community.dynatrace.com/t5/Automations/Run-workflows-in-a-loop/m-p/284081#M2318</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;BR /&gt;I built 2 workflows&lt;BR /&gt;&lt;BR /&gt;workflow 1 - having&amp;nbsp; "run workflow" task . In loop task, there is&amp;nbsp; item variable name "item" and its value is json object i.e.&amp;nbsp;&lt;BR /&gt;[{&lt;/P&gt;&lt;P&gt;"cluster" : "Cluster1",&lt;BR /&gt;"namespace" : "namespace1"&lt;/P&gt;&lt;P&gt;},&lt;BR /&gt;{&lt;BR /&gt;"cluster" : "Cluster2",&lt;BR /&gt;"namespace" : "namespace2"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;]&lt;BR /&gt;&lt;BR /&gt;This workflow calling another workflow i.e workflow2.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Here in workflow2 , I am trying to print item values of workflow 1 but getting error in javascript code.&lt;BR /&gt;&lt;BR /&gt;console.log(loopItemValue.value);&lt;BR /&gt;&lt;BR /&gt;error : can not read properties of null(reading 'value)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Please correct me&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2025 14:09:18 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Run-workflows-in-a-loop/m-p/284081#M2318</guid>
      <dc:creator>heramb_sawant</dc:creator>
      <dc:date>2025-08-18T14:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Can we run workflow in loop</title>
      <link>https://community.dynatrace.com/t5/Automations/Run-workflows-in-a-loop/m-p/284082#M2319</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/46340"&gt;@heramb_sawant&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should use something like that :&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// import of sdk modules
import { execution } from '@dynatrace-sdk/automation-utils';

export default async function ({ loopItemValue }) {

  // load the execution object using the current loopItemValue
  const exe = await execution(loopItemValue);
  
  const checkResult = await exe.result('workflow1');

  const json = checkResult['json'];
  
  // APPELER L'ATTRIBUT NAME
  console.log('Cluster : ', json.cluster);
  console.log('Namespace : ', json.namespace);

}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A title="https://docs.dynatrace.com/docs/shortlink/workflows-action-javascript#example-using-the-automation-utils-sdk-to-access-the-result" href="https://docs.dynatrace.com/docs/shortlink/workflows-action-javascript#example-using-the-automation-utils-sdk-to-access-the-result" target="_self"&gt;https://docs.dynatrace.com/docs/shortlink/workflows-action-javascript#example-using-the-automation-utils-sdk-to-access-the-result&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards Aurélien&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2025 14:45:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Run-workflows-in-a-loop/m-p/284082#M2319</guid>
      <dc:creator>AurelienGravier</dc:creator>
      <dc:date>2025-08-18T14:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Can we run workflow in loop</title>
      <link>https://community.dynatrace.com/t5/Automations/Run-workflows-in-a-loop/m-p/284083#M2320</link>
      <description>&lt;P&gt;getting error&amp;nbsp; in workflow2,&lt;BR /&gt;&lt;BR /&gt;define_application_details:&lt;BR /&gt;Uncaught (in promise) 404: Task run_workflow_1 does not exist.&lt;BR /&gt;&lt;BR /&gt;here "run_workflow_1 " is task from workflow 1. I tried with workflow1 names but same error&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2025 14:59:26 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Run-workflows-in-a-loop/m-p/284083#M2320</guid>
      <dc:creator>heramb_sawant</dc:creator>
      <dc:date>2025-08-18T14:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: Can we run workflow in loop</title>
      <link>https://community.dynatrace.com/t5/Automations/Run-workflows-in-a-loop/m-p/284084#M2321</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/46340"&gt;@heramb_sawant&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’m not sure I fully understand what you mean.&lt;/P&gt;&lt;P&gt;You’re talking about a “workflow 1” and a “workflow 2,” whereas I’m referring to "tasks" within the same workflow.&lt;/P&gt;&lt;P&gt;In my case, you run check-result on the previous task name, which returns the JSON.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2025 15:05:16 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Run-workflows-in-a-loop/m-p/284084#M2321</guid>
      <dc:creator>AurelienGravier</dc:creator>
      <dc:date>2025-08-18T15:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Can we run workflow in loop</title>
      <link>https://community.dynatrace.com/t5/Automations/Run-workflows-in-a-loop/m-p/284095#M2322</link>
      <description>&lt;P&gt;I am trying to&amp;nbsp; call workflow 2 from workflow 1.&lt;BR /&gt;&lt;BR /&gt;Workflow 1 has task that calls workflow 2. This task also has loopitem i.e. "item" having json object as value.&lt;BR /&gt;Then trying to access this loopitem values in workflow 2 but getting error.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2025 16:25:59 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Run-workflows-in-a-loop/m-p/284095#M2322</guid>
      <dc:creator>heramb_sawant</dc:creator>
      <dc:date>2025-08-18T16:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Can we run workflow in loop</title>
      <link>https://community.dynatrace.com/t5/Automations/Run-workflows-in-a-loop/m-p/284131#M2323</link>
      <description>&lt;P&gt;Any help will&amp;nbsp; be appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2025 06:58:59 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Run-workflows-in-a-loop/m-p/284131#M2323</guid>
      <dc:creator>heramb_sawant</dc:creator>
      <dc:date>2025-08-19T06:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Can we run workflow in loop</title>
      <link>https://community.dynatrace.com/t5/Automations/Run-workflows-in-a-loop/m-p/284148#M2324</link>
      <description>&lt;P&gt;Ok, so&amp;nbsp;to assist you further,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Export your workflow as a template (make sure it doesn’t contain any personal data),&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AurelienGravier_0-1755590235340.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/29644i1F105118A7EF9D23/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AurelienGravier_0-1755590235340.png" alt="AurelienGravier_0-1755590235340.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Or Take a screenshot of Workflow 1 and another screenshot of the results of the task that calls Workflow 2.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2025 08:01:40 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Run-workflows-in-a-loop/m-p/284148#M2324</guid>
      <dc:creator>AurelienGravier</dc:creator>
      <dc:date>2025-08-19T08:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Can we run workflow in loop</title>
      <link>https://community.dynatrace.com/t5/Automations/Run-workflows-in-a-loop/m-p/284263#M2329</link>
      <description>&lt;P&gt;Hi ,&lt;BR /&gt;&lt;BR /&gt;Please find the SS for your reference.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="heramb_sawant_0-1755674408531.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/29675i3B50276C3E8B7DBA/image-size/large?v=v2&amp;amp;px=999" role="button" title="heramb_sawant_0-1755674408531.png" alt="heramb_sawant_0-1755674408531.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;workflow 1 has task "run_workflow_1" having input values&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="heramb_sawant_1-1755674522009.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/29676i764A9E747C12B1BB/image-size/large?v=v2&amp;amp;px=999" role="button" title="heramb_sawant_1-1755674522009.png" alt="heramb_sawant_1-1755674522009.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;results of the task that calls Workflow 2&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="heramb_sawant_2-1755675041312.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/29677i559A7B3377B39B98/image-size/large?v=v2&amp;amp;px=999" role="button" title="heramb_sawant_2-1755675041312.png" alt="heramb_sawant_2-1755675041312.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;I&amp;nbsp; want to receive input values in workflow 2.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2025 07:35:06 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Run-workflows-in-a-loop/m-p/284263#M2329</guid>
      <dc:creator>heramb_sawant</dc:creator>
      <dc:date>2025-08-20T07:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can we run workflow in loop</title>
      <link>https://community.dynatrace.com/t5/Automations/Run-workflows-in-a-loop/m-p/284275#M2330</link>
      <description>&lt;P&gt;Ok, I understand your need better.&lt;BR /&gt;&lt;BR /&gt;I have never experimented with this, but in my opinion you need to add {{ _.item }} in your input:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AurelienGravier_0-1755676737103.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/29687iF6D2A6CC5839747F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AurelienGravier_0-1755676737103.png" alt="AurelienGravier_0-1755676737103.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And you must use the input() expression in the sub-workflow :&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;{{ &lt;SPAN class=""&gt;input('language')&lt;/SPAN&gt; }} {{ &lt;SPAN class=""&gt;input('topic')&lt;/SPAN&gt; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;Sources:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;A class="" href="https://docs.dynatrace.com/docs/analyze-explore-automate/workflows/default-workflow-actions/run-workflow-action#input" target="_new" rel="noopener"&gt;https://docs.dynatrace.com/docs/analyze-explore-automate/workflows/default-workflow-actions/run-workflow-action#input&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;A class="" href="https://docs.dynatrace.com/docs/shortlink/automation-workflow-expression-reference#input" target="_new" rel="noopener"&gt;https://docs.dynatrace.com/docs/shortlink/automation-workflow-expression-reference#input&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2025 07:59:28 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Run-workflows-in-a-loop/m-p/284275#M2330</guid>
      <dc:creator>AurelienGravier</dc:creator>
      <dc:date>2025-08-20T07:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can we run workflow in loop</title>
      <link>https://community.dynatrace.com/t5/Automations/Run-workflows-in-a-loop/m-p/284289#M2331</link>
      <description>&lt;P&gt;how to use this&amp;nbsp;&lt;SPAN&gt;{{&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;input('language')&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;}} {{&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;input('topic')&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;} in javascript task of sub workflow i.e workflow2&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2025 09:08:39 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Run-workflows-in-a-loop/m-p/284289#M2331</guid>
      <dc:creator>heramb_sawant</dc:creator>
      <dc:date>2025-08-20T09:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Can we run workflow in loop</title>
      <link>https://community.dynatrace.com/t5/Automations/Run-workflows-in-a-loop/m-p/284390#M2333</link>
      <description>&lt;P&gt;any help regarding receiving input values in JS task would be appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2025 17:44:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Run-workflows-in-a-loop/m-p/284390#M2333</guid>
      <dc:creator>heramb_sawant</dc:creator>
      <dc:date>2025-08-20T17:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can we run workflow in loop</title>
      <link>https://community.dynatrace.com/t5/Automations/Run-workflows-in-a-loop/m-p/284509#M2334</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Any help to receive input values from one workflow to another workflow&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 18:08:22 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Run-workflows-in-a-loop/m-p/284509#M2334</guid>
      <dc:creator>heramb_sawant</dc:creator>
      <dc:date>2025-08-21T18:08:22Z</dc:date>
    </item>
  </channel>
</rss>

