<?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: List processing in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/list-processing/m-p/522381#M1453</link>
    <description>&lt;P&gt;I have a numeric value stored in list. I want to fetch that data in script and process it (that is perform increment operation on it). I’m not able to convert the list data to int to perform addition. Is there a way to convert it&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Nov 2022 15:33:38 GMT</pubDate>
    <dc:creator>RameshRath</dc:creator>
    <dc:date>2022-11-24T15:33:38Z</dc:date>
    <item>
      <title>List processing</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/list-processing/m-p/522371#M1450</link>
      <description>&lt;P&gt;How to convert a list into int in xsoar automation.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 11:10:04 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/list-processing/m-p/522371#M1450</guid>
      <dc:creator>RameshRath</dc:creator>
      <dc:date>2022-11-24T11:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: List processing</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/list-processing/m-p/522377#M1451</link>
      <description>&lt;P&gt;Can you clarify what do you mean?&lt;/P&gt;
&lt;P&gt;You can get the list data in playbooks. For example, in the playbook inputs, the value can be lists.&amp;lt;list_name&amp;gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 14:37:17 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/list-processing/m-p/522377#M1451</guid>
      <dc:creator>YAltmann</dc:creator>
      <dc:date>2022-11-24T14:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: List processing</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/list-processing/m-p/522381#M1453</link>
      <description>&lt;P&gt;I have a numeric value stored in list. I want to fetch that data in script and process it (that is perform increment operation on it). I’m not able to convert the list data to int to perform addition. Is there a way to convert it&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 15:33:38 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/list-processing/m-p/522381#M1453</guid>
      <dc:creator>RameshRath</dc:creator>
      <dc:date>2022-11-24T15:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: List processing</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/list-processing/m-p/522397#M1454</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/237041"&gt;@RameshRath&lt;/a&gt;, when creating the argument for your automation ensure you select the "Is Array" option. When you pass an array to the automation XSOAR will consider as single piece of data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-11-25 at 12.20.00 pm.png" style="width: 513px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/45662i435872B34A7CC36B/image-dimensions/513x144/is-moderation-mode/true?v=v2" width="513" height="144" role="button" title="Screen Shot 2022-11-25 at 12.20.00 pm.png" alt="Screen Shot 2022-11-25 at 12.20.00 pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 01:22:26 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/list-processing/m-p/522397#M1454</guid>
      <dc:creator>jfernandes1</dc:creator>
      <dc:date>2022-11-25T01:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: List processing</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/list-processing/m-p/522604#M1460</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/237041"&gt;@RameshRath&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;How to convert a list into int in xsoar automation.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;In your automation you can retrieve the list and the contents of the list using the getList function, available from your Script Helper.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;# get the list contents.&lt;BR /&gt;my_list = demisto.executeCommand("getList", {"listName":"YourListNameHere"})[0]['Contents']&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once you have the contents of the list, you can do with it what you want in your python code.&amp;nbsp; If the list has a number, then you can convert it to an int simply with&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;x = int(my_list) + 4&lt;/P&gt;
&lt;P&gt;print(x)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 16:03:26 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/list-processing/m-p/522604#M1460</guid>
      <dc:creator>MBeauchamp2</dc:creator>
      <dc:date>2022-11-28T16:03:26Z</dc:date>
    </item>
  </channel>
</rss>

