<?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 extend-context of multiple columns at once in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/extend-context-of-multiple-columns-at-once/m-p/516720#M1259</link>
    <description>&lt;P&gt;Hi all.&lt;BR /&gt;I'm struggling a lot to solve a particular issue.&lt;BR /&gt;I am performing a Log analytics query which returns 4 columns (named AuthenticationRequirement, ResultType, ExternalUser and TrustedNetwork). The result could result in multiple rows with these 4 columns.&lt;BR /&gt;&lt;BR /&gt;I want to map each of these columns to a separate key, but I don't find a suitable way to do this as they all come scrambled together in an unorganized matter.&lt;BR /&gt;&lt;BR /&gt;This is what the raw-response looks like:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EspenAbildgaard_0-1664871502807.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/44370i4B7E2BB71D17DD6C/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="EspenAbildgaard_0-1664871502807.png" alt="EspenAbildgaard_0-1664871502807.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The optimal result I am looking for, is that each 4 of these columns are mapped to their own separate keys, matching the column names. The applicable row results will have to be stored inside it as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, the two rows with the result "0", which would be "tables.0.rows.0.1" and "tables.0.rows.1.1", should be stored inside / below the key "ResultType".&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone have a smart solution for this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can get the result I want with extend-context if the query only gives me a single column, but I would rather run a single query than having to divide it into 4 separate queries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The result I get from the task output when I run it in debugger looks like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EspenAbildgaard_0-1664872920815.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/44372i9C7917D97B166FF4/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="EspenAbildgaard_0-1664872920815.png" alt="EspenAbildgaard_0-1664872920815.png" /&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;PS: possible outputs for the task looks like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EspenAbildgaard_0-1664872384980.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/44371iFB8C8E7C22EB6F71/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="EspenAbildgaard_0-1664872384980.png" alt="EspenAbildgaard_0-1664872384980.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Oct 2022 08:42:07 GMT</pubDate>
    <dc:creator>EspenAbildgaard</dc:creator>
    <dc:date>2022-10-04T08:42:07Z</dc:date>
    <item>
      <title>extend-context of multiple columns at once</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/extend-context-of-multiple-columns-at-once/m-p/516720#M1259</link>
      <description>&lt;P&gt;Hi all.&lt;BR /&gt;I'm struggling a lot to solve a particular issue.&lt;BR /&gt;I am performing a Log analytics query which returns 4 columns (named AuthenticationRequirement, ResultType, ExternalUser and TrustedNetwork). The result could result in multiple rows with these 4 columns.&lt;BR /&gt;&lt;BR /&gt;I want to map each of these columns to a separate key, but I don't find a suitable way to do this as they all come scrambled together in an unorganized matter.&lt;BR /&gt;&lt;BR /&gt;This is what the raw-response looks like:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EspenAbildgaard_0-1664871502807.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/44370i4B7E2BB71D17DD6C/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="EspenAbildgaard_0-1664871502807.png" alt="EspenAbildgaard_0-1664871502807.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The optimal result I am looking for, is that each 4 of these columns are mapped to their own separate keys, matching the column names. The applicable row results will have to be stored inside it as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, the two rows with the result "0", which would be "tables.0.rows.0.1" and "tables.0.rows.1.1", should be stored inside / below the key "ResultType".&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone have a smart solution for this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can get the result I want with extend-context if the query only gives me a single column, but I would rather run a single query than having to divide it into 4 separate queries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The result I get from the task output when I run it in debugger looks like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EspenAbildgaard_0-1664872920815.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/44372i9C7917D97B166FF4/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="EspenAbildgaard_0-1664872920815.png" alt="EspenAbildgaard_0-1664872920815.png" /&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;PS: possible outputs for the task looks like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EspenAbildgaard_0-1664872384980.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/44371iFB8C8E7C22EB6F71/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="EspenAbildgaard_0-1664872384980.png" alt="EspenAbildgaard_0-1664872384980.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 08:42:07 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/extend-context-of-multiple-columns-at-once/m-p/516720#M1259</guid>
      <dc:creator>EspenAbildgaard</dc:creator>
      <dc:date>2022-10-04T08:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: extend-context of multiple columns at once</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/extend-context-of-multiple-columns-at-once/m-p/530927#M1800</link>
      <description>&lt;P&gt;We could always try and figure out how to present it in the way you wish in the context, but is the end goal to present it in a table for an analyst or is the context the end goal in and an out of itself?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the end goal is to present the data to an analyst I would recommend using the jsonToTable integration and seeing if that shows the data as you need it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if you need further assistance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 19:45:03 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/extend-context-of-multiple-columns-at-once/m-p/530927#M1800</guid>
      <dc:creator>Ivetto</dc:creator>
      <dc:date>2023-02-13T19:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: extend-context of multiple columns at once</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/extend-context-of-multiple-columns-at-once/m-p/531029#M1802</link>
      <description>&lt;P&gt;The automation will perform a Kusto query (KQL), in which some data is returned. The desired outcome would be that the data I receive can easily be split so that I can perform a conditional task on them.&lt;BR /&gt;For example, the KQL query might return 4 columns, and I would want to extend-context to assign each of them to a particular key, which I then use for a conditional task.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 07:14:06 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/extend-context-of-multiple-columns-at-once/m-p/531029#M1802</guid>
      <dc:creator>EspenAbildgaard</dc:creator>
      <dc:date>2023-02-14T07:14:06Z</dc:date>
    </item>
  </channel>
</rss>

