<?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: Context key reorganize in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/context-key-reorganize/m-p/538899#M2015</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/208030"&gt;@chrking&lt;/a&gt;&amp;nbsp;&amp;nbsp;, this worked like a charm! Thanks a lot.&lt;/P&gt;
&lt;P&gt;This was just a mock data, not to worry about someones red eyes, all are safe and healthy &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 16 Apr 2023 06:46:41 GMT</pubDate>
    <dc:creator>Antanas</dc:creator>
    <dc:date>2023-04-16T06:46:41Z</dc:date>
    <item>
      <title>Context key reorganize</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/context-key-reorganize/m-p/538593#M2000</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to be able to manipulate context keys by selecting the keys I want, and moving them to upper level. E.g.: Assuming I have the following in the context:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="f1.JPG" style="width: 185px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/49434i8070708FCD65B5F7/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="f1.JPG" alt="f1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I want to have a new context key with only Name and HairColor:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="f2.JPG" style="width: 173px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/49435i4230E3B92BE980B6/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="f2.JPG" alt="f2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;GetFields&lt;/STRONG&gt;&amp;nbsp;transformer seems to have similar functionality, however I cannot tell it to get subkeys, e.g. Appearance.Head.HairColor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any ideas?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Antanas&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 11:08:17 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/context-key-reorganize/m-p/538593#M2000</guid>
      <dc:creator>Antanas</dc:creator>
      <dc:date>2023-04-13T11:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: Context key reorganize</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/context-key-reorganize/m-p/538615#M2003</link>
      <description>&lt;P&gt;I believe you need to add more context to what you intend by "&lt;SPAN&gt;selecting the keys I want and moving them to the upper level&lt;/SPAN&gt;". Why not just created a new context Upper-Level key? You can try running !Print&amp;nbsp; with this value =&amp;gt; ${ParentKey.[].appearance.head}, it should grab all the values you want. Then use !Set or !Setmultiplevalues depending on what works for you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know what works for you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 15:15:52 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/context-key-reorganize/m-p/538615#M2003</guid>
      <dc:creator>michaelsysec242</dc:creator>
      <dc:date>2023-04-13T15:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Context key reorganize</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/context-key-reorganize/m-p/538705#M2009</link>
      <description>&lt;P&gt;A jmespath transformer can do this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can test your jmespath expression in the war room like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chrking_0-1681441414955.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/49451i7582425CF06F3ED9/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="chrking_0-1681441414955.png" alt="chrking_0-1681441414955.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then use it as a transformer:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chrking_1-1681441569597.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/49454i34D907C914AA1A1E/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="chrking_1-1681441569597.png" alt="chrking_1-1681441569597.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And finally check the results in the context:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chrking_2-1681441632945.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/49455i5AD679C71C0EFB18/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="chrking_2-1681441632945.png" alt="chrking_2-1681441632945.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also... John should maybe get his red eyes looked at, I'm not a doctor but that doesn't seem normal&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":rolling_on_the_floor_laughing:"&gt;🤣&lt;/span&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;</description>
      <pubDate>Fri, 14 Apr 2023 03:08:32 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/context-key-reorganize/m-p/538705#M2009</guid>
      <dc:creator>chrking</dc:creator>
      <dc:date>2023-04-14T03:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Context key reorganize</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/context-key-reorganize/m-p/538899#M2015</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/208030"&gt;@chrking&lt;/a&gt;&amp;nbsp;&amp;nbsp;, this worked like a charm! Thanks a lot.&lt;/P&gt;
&lt;P&gt;This was just a mock data, not to worry about someones red eyes, all are safe and healthy &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Apr 2023 06:46:41 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/context-key-reorganize/m-p/538899#M2015</guid>
      <dc:creator>Antanas</dc:creator>
      <dc:date>2023-04-16T06:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Context key reorganize</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/context-key-reorganize/m-p/538900#M2016</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/209373"&gt;@michaelsysec242&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I think the problem with your suggested approach is that i can't output multiple keys in a singe query, therefore i wouldn't be able to properly set them into one key.&lt;/P&gt;
&lt;P&gt;Anyways, the other suggestion was to use jmespath as a transformer, and that worked quite well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 16 Apr 2023 06:50:07 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/context-key-reorganize/m-p/538900#M2016</guid>
      <dc:creator>Antanas</dc:creator>
      <dc:date>2023-04-16T06:50:07Z</dc:date>
    </item>
  </channel>
</rss>

