<?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: SetGridField in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/setgridfield/m-p/516239#M1243</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/208028"&gt;@jfernandes1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for your response.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I see it working when I use column&amp;nbsp;header name under column parameter. How can I flatten the context on playbook?&lt;BR /&gt;And How should i pass each key in playbook task with setIncident?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Sep 2022 14:44:03 GMT</pubDate>
    <dc:creator>speddireddy</dc:creator>
    <dc:date>2022-09-28T14:44:03Z</dc:date>
    <item>
      <title>SetGridField</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/setgridfield/m-p/515954#M1235</link>
      <description>&lt;P&gt;How can I map keys (query,&amp;nbsp;network.cidr, network.country) to a table? I'm trying with below command, is not working for CIDR &amp;amp; Country.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;!SetGridField context_path="Whois.IP" grid_id="whoisipinfo" overwrite="true" columns="IP Address,CIDR,Country" keys="query,&amp;nbsp;network.cidr, network.country"&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Whois.IP&lt;BR /&gt;{&lt;BR /&gt;"asn_registry": "apnic",&lt;BR /&gt;"entities": [&lt;BR /&gt;"IRT-APNICRANDNET-AU",&lt;BR /&gt;"ORG-ARAD1-AP",&lt;BR /&gt;"AR302-AP"&lt;BR /&gt;],&lt;BR /&gt;"raw": null,&lt;BR /&gt;"query": "1.1.1.1",&lt;BR /&gt;"network": {&lt;BR /&gt;"ip_version": "v4",&lt;BR /&gt;"raw": null,&lt;BR /&gt;"handle": "1.1.1.0 - 1.1.1.255",&lt;BR /&gt;"name": "APNIC-LABS",&lt;BR /&gt;"end_address": "1.1.1.255",&lt;BR /&gt;"status": [&lt;BR /&gt;"active"&lt;BR /&gt;],&lt;BR /&gt;"remarks": [&lt;BR /&gt;{&lt;BR /&gt;"description": "APNIC and Cloudflare DNS Resolver project\nRouted globally by AS13335/Cloudflare\nResearch prefix for APNIC Labs",&lt;BR /&gt;"links": null,&lt;BR /&gt;"title": "description"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"description": "---------------\nAll Cloudflare abuse reporting can be done via\nresolver-abuse@cloudflare.com\n---------------",&lt;BR /&gt;"links": null,&lt;BR /&gt;"title": "remarks"&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"cidr": "1.1.1.0/24",&lt;BR /&gt;"country": "AU",&lt;BR /&gt;"start_address": "1.1.1.0",&lt;BR /&gt;"events": [&lt;BR /&gt;{&lt;BR /&gt;"action": "registration",&lt;BR /&gt;"actor": null,&lt;BR /&gt;"timestamp": "2011-08-10T23:12:35Z"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"action": "last changed",&lt;BR /&gt;"actor": null,&lt;BR /&gt;"timestamp": "2020-07-15T13:10:57Z"&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 16:52:28 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/setgridfield/m-p/515954#M1235</guid>
      <dc:creator>speddireddy</dc:creator>
      <dc:date>2022-09-26T16:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: SetGridField</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/setgridfield/m-p/516157#M1241</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/216452"&gt;@speddireddy&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I noticed a couple of issues with the command you ran.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;- The column parameter need the machine name of the grid field key. So it would look like this&amp;nbsp;&lt;CODE&gt;columns="ipaddress,cidr,country"&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;- For the keys parameter, the dot notation is not supported. You cannot specify sub keys. You'll need to flatten the context before using the setGridField command&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the above solution does not work in your case, you can try passing each key like below.&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;!setIncident whoisipinfo="{\"ipaddress\" : \"${Whois.IP.query}\" , \"cidr\" : \"${Whois.IP.network.cidr}\", \"country\" : \"${Whois.IP.network.country}\"}"&lt;/CODE&gt;&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>Wed, 28 Sep 2022 04:06:33 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/setgridfield/m-p/516157#M1241</guid>
      <dc:creator>jfernandes1</dc:creator>
      <dc:date>2022-09-28T04:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: SetGridField</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/setgridfield/m-p/516239#M1243</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/208028"&gt;@jfernandes1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for your response.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I see it working when I use column&amp;nbsp;header name under column parameter. How can I flatten the context on playbook?&lt;BR /&gt;And How should i pass each key in playbook task with setIncident?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 14:44:03 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/setgridfield/m-p/516239#M1243</guid>
      <dc:creator>speddireddy</dc:creator>
      <dc:date>2022-09-28T14:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: SetGridField</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/setgridfield/m-p/516294#M1246</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/216452"&gt;@speddireddy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You'll need to write a custom automation to flatten the object.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As provided in my previous response, you'll need to pass the keys like below.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;CODE&gt;!setIncident whoisipinfo="{\"ipaddress\" : \"${Whois.IP.query}\" , \"cidr\" : \"${Whois.IP.network.cidr}\", \"country\" : \"${Whois.IP.network.country}\"}&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 01:05:42 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/setgridfield/m-p/516294#M1246</guid>
      <dc:creator>jfernandes1</dc:creator>
      <dc:date>2022-09-29T01:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: SetGridField</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/setgridfield/m-p/536485#M1941</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/216452"&gt;@speddireddy&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;there is a way how to do it using different automation:&amp;nbsp;&lt;A href="https://xsoar.pan.dev/docs/reference/scripts/grid-field-setup" target="_blank" rel="noopener"&gt;https://xsoar.pan.dev/docs/reference/scripts/grid-field-setup&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Hope it helps.&lt;/P&gt;
&lt;P&gt;Jan&lt;/P&gt;</description>
      <pubDate>Sun, 26 Mar 2023 19:18:55 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/setgridfield/m-p/536485#M1941</guid>
      <dc:creator>Honza_Linhart</dc:creator>
      <dc:date>2023-03-26T19:18:55Z</dc:date>
    </item>
  </channel>
</rss>

