<?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 Running a Task on Multiple Instances of an Integration - Playbook Optimization in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/running-a-task-on-multiple-instances-of-an-integration-playbook/m-p/599077#M3655</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;we are working on a playbook that needs to run a single task on 10 different instances of the same integration. Currently, the only way we know to handle this is by creating a separate sub-playbook for each instance, with the task configured to run on each of the 10 instances. As a result, the main playbook consists of 10 separate sub-playbooks, one for each instance.&lt;/P&gt;
&lt;P&gt;We would like to know if there is a more efficient way to run the same task on all instances of the same integration, without duplicating the sub-playbook for each instance.&lt;/P&gt;
&lt;P&gt;We are aware that using sub-playbooks for each instance works, but we were wondering if there is a cleaner and less redundant solution for this.&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Mon, 30 Sep 2024 08:29:41 GMT</pubDate>
    <dc:creator>MF762</dc:creator>
    <dc:date>2024-09-30T08:29:41Z</dc:date>
    <item>
      <title>Running a Task on Multiple Instances of an Integration - Playbook Optimization</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/running-a-task-on-multiple-instances-of-an-integration-playbook/m-p/599077#M3655</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;we are working on a playbook that needs to run a single task on 10 different instances of the same integration. Currently, the only way we know to handle this is by creating a separate sub-playbook for each instance, with the task configured to run on each of the 10 instances. As a result, the main playbook consists of 10 separate sub-playbooks, one for each instance.&lt;/P&gt;
&lt;P&gt;We would like to know if there is a more efficient way to run the same task on all instances of the same integration, without duplicating the sub-playbook for each instance.&lt;/P&gt;
&lt;P&gt;We are aware that using sub-playbooks for each instance works, but we were wondering if there is a cleaner and less redundant solution for this.&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 08:29:41 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/running-a-task-on-multiple-instances-of-an-integration-playbook/m-p/599077#M3655</guid>
      <dc:creator>MF762</dc:creator>
      <dc:date>2024-09-30T08:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Running a Task on Multiple Instances of an Integration - Playbook Optimization</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/running-a-task-on-multiple-instances-of-an-integration-playbook/m-p/599081#M3656</link>
      <description>&lt;P&gt;Hi, it depends on the task you're running. You can use a single sub-playbook with inputs, extend the context, or similarly use a list. But it might be a bit hard to manage the outputs depending on the following actions you'd like to take. If you'd like it to run as a parallel execution, running on different sub-playbooks is also a good idea. So, if you could share the command/task you're running and elaborate on the following actions that will use the output, we can help more.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 09:25:06 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/running-a-task-on-multiple-instances-of-an-integration-playbook/m-p/599081#M3656</guid>
      <dc:creator>ctopay</dc:creator>
      <dc:date>2024-09-30T09:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: Running a Task on Multiple Instances of an Integration - Playbook Optimization</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/running-a-task-on-multiple-instances-of-an-integration-playbook/m-p/599088#M3657</link>
      <description>&lt;P&gt;the solution is that&amp;nbsp;&lt;SPAN&gt;there is option available to get the values from the context or the playbook inputs using&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="c-mrkdwn__code" data-stringify-type="code"&gt;{}&lt;/CODE&gt;&lt;SPAN&gt;. You can define comma separated values in playbook input, and use transformer in&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="c-mrkdwn__code" data-stringify-type="code"&gt;using&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;to split the values. This might work.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 13:07:15 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/running-a-task-on-multiple-instances-of-an-integration-playbook/m-p/599088#M3657</guid>
      <dc:creator>MF762</dc:creator>
      <dc:date>2024-09-30T13:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Running a Task on Multiple Instances of an Integration - Playbook Optimization</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/running-a-task-on-multiple-instances-of-an-integration-playbook/m-p/599098#M3658</link>
      <description>&lt;P&gt;Yes, that or/and the lists would work. However, you need a loop for it and the task will run one by one for the input you gave(instances). Depending on the output of the task, the playbook context might need some managing to make it usable for the following task(if that's the case). And since it runs as a single task, you can't run it parallel on many instances at the same time, so better to add a continue(or error path).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 15:20:18 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/running-a-task-on-multiple-instances-of-an-integration-playbook/m-p/599098#M3658</guid>
      <dc:creator>ctopay</dc:creator>
      <dc:date>2024-09-30T15:20:18Z</dc:date>
    </item>
  </channel>
</rss>

