<?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: Assigning an array of Values to a key/variable in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/assigning-an-array-of-values-to-a-key-variable/m-p/508650#M1044</link>
    <description>&lt;P&gt;Not sure you can do a list and assign it to a variable.&amp;nbsp; &amp;nbsp;Thinking you would have to identify a device group first, and the serial number of the firewall, and then assign a specific variable to that.&amp;nbsp; &amp;nbsp;The firewalls/panorama is looking for a specific address/single address/entry for any given spot on a variable assigned to a device.&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jul 2022 13:34:49 GMT</pubDate>
    <dc:creator>Sec101</dc:creator>
    <dc:date>2022-07-13T13:34:49Z</dc:date>
    <item>
      <title>Assigning an array of Values to a key/variable</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/assigning-an-array-of-values-to-a-key-variable/m-p/508638#M1043</link>
      <description>&lt;P&gt;Hey guys,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm working on separating internal and external IP(s) on a playbook and I want to use those values in a email body. So currently I'm using a temporary list to store IP(s) then call when needed in the same playbook with &lt;STRONG&gt;${lists.templist}&lt;/STRONG&gt;. But I have two limitations with this approach,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Cannot add more than one IP, as &lt;EM&gt;setList&lt;/EM&gt; fails.&lt;/LI&gt;
&lt;LI&gt;Uncertain about what will happen if the playbook runs simultaneously on two different incidents.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;If someone has a less messy method, please let me know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 07:57:19 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/assigning-an-array-of-values-to-a-key-variable/m-p/508638#M1043</guid>
      <dc:creator>vidurasupun</dc:creator>
      <dc:date>2022-07-13T07:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning an array of Values to a key/variable</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/assigning-an-array-of-values-to-a-key-variable/m-p/508650#M1044</link>
      <description>&lt;P&gt;Not sure you can do a list and assign it to a variable.&amp;nbsp; &amp;nbsp;Thinking you would have to identify a device group first, and the serial number of the firewall, and then assign a specific variable to that.&amp;nbsp; &amp;nbsp;The firewalls/panorama is looking for a specific address/single address/entry for any given spot on a variable assigned to a device.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 13:34:49 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/assigning-an-array-of-values-to-a-key-variable/m-p/508650#M1044</guid>
      <dc:creator>Sec101</dc:creator>
      <dc:date>2022-07-13T13:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning an array of Values to a key/variable</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/assigning-an-array-of-values-to-a-key-variable/m-p/508910#M1048</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/202857"&gt;@vidurasupun&lt;/a&gt;, not sure what your use case is, I can help better if I understand what exactly your trying to do.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By list I'm assuming your referring to a list of values in the incident's context? Not the external list function of Cortex&amp;nbsp;&lt;A href="https://docs.paloaltonetworks.com/cortex/cortex-xsoar/6-8/cortex-xsoar-admin/lists" target="_self"&gt;https://docs.paloaltonetworks.com/cortex/cortex-xsoar/6-8/cortex-xsoar-admin/lists&lt;/A&gt;? The command setList is used for that.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try the attached playbook, it should do the trick. It uses an inbuilt conditional check and playbook looping to achieve the same outcome. You can also do this with a single automation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I had to change the extensions to xml, just change it back to yml before uploading to your server.&amp;nbsp;&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;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 00:52:37 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/assigning-an-array-of-values-to-a-key-variable/m-p/508910#M1048</guid>
      <dc:creator>jfernandes1</dc:creator>
      <dc:date>2022-07-14T00:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning an array of Values to a key/variable</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/assigning-an-array-of-values-to-a-key-variable/m-p/508930#M1050</link>
      <description>&lt;P&gt;&amp;nbsp;Sec101 thank you for the response but I need to do the same thing on the playbook level, as Jfernandes1 mentioned he is using the &lt;EM&gt;set&amp;nbsp;automation to assign external IP(s) to the key&amp;nbsp;&lt;STRONG&gt;externalIPs&amp;nbsp;then I can call it later in my playbook as an example to send a mail like below&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Hi Network Team,&lt;BR /&gt;&lt;BR /&gt;Please block the IP(s) ${externalIPs} from the FW.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class="" data-test-id="tabs-container"&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV id="inputs" class=""&gt;
&lt;DIV id="task-inputs" class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/208028"&gt;@jfernandes1&lt;/a&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/208028"&gt;@jfernandes1&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 05:55:27 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/assigning-an-array-of-values-to-a-key-variable/m-p/508930#M1050</guid>
      <dc:creator>vidurasupun</dc:creator>
      <dc:date>2022-07-14T05:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning an array of Values to a key/variable</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/assigning-an-array-of-values-to-a-key-variable/m-p/508931#M1051</link>
      <description>&lt;P&gt;Thank you for the solution. I added bit of stuff on top your playbook,&lt;/P&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;&amp;nbsp;
&lt;OL&gt;
&lt;LI class=""&gt;&lt;SPAN&gt;extractIndicators automation to extract the IP(s) from the incident.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI class=""&gt;Setting IP = IP.Address to give the input to rangeloop.
&lt;DIV class="" data-test-id="tabs-container"&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 14 Jul 2022 05:55:49 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/assigning-an-array-of-values-to-a-key-variable/m-p/508931#M1051</guid>
      <dc:creator>vidurasupun</dc:creator>
      <dc:date>2022-07-14T05:55:49Z</dc:date>
    </item>
  </channel>
</rss>

