<?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 Unable to retrieve output value while using extended context in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/unable-to-retrieve-output-value-while-using-extended-context/m-p/507087#M1005</link>
    <description>&lt;P&gt;Hello team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to use the extended context feature to keep only the data I'm interrested in and put them where I need them to be.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The automation I'm using is &lt;STRONG&gt;infoblox-get-ip&lt;/STRONG&gt; from Infoblox integration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the output of the automation:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screen1.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/42045i46C91B53522A0337/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="screen1.png" alt="screen1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; I'm setting the following string in the &lt;STRONG&gt;Extended Context&lt;/STRONG&gt; field (splitted on multiple lines for better visibility):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IpInformation.status=result.status::&lt;BR /&gt;IpInformation.network=result.network::&lt;BR /&gt;IpInformation.names=result.names::&lt;BR /&gt;IpInformation.site=result.extattrs.site.value::&lt;BR /&gt;IpInformation.macaddress=result.macaddress&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm getting the following result (information is censored, InRange and Pivate come from another integration):&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screen3.PNG" style="width: 316px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/42047i4F50CA64FCD27EB3/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="screen3.PNG" alt="screen3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As you can see only some of the fields are present in the output.&lt;/P&gt;&lt;P&gt;The following fields are missing : macaddress and extattrs.site.value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Moreover all fields comming from the extended context functionnality are arrays (insteal of single value as the real output, except for names).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the full context printed:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;{&lt;BR /&gt;"IpInformation": {&lt;BR /&gt;"status": [&lt;BR /&gt;"value"&lt;BR /&gt;],&lt;BR /&gt;"InRange": "value",&lt;BR /&gt;"names": [&lt;BR /&gt;"value",&lt;BR /&gt;"value",&lt;BR /&gt;"value"&lt;BR /&gt;],&lt;BR /&gt;"Private": "value",&lt;BR /&gt;"network": [&lt;BR /&gt;"value"&lt;BR /&gt;]&lt;BR /&gt;},&lt;BR /&gt;"Infoblox": {&lt;BR /&gt;"IP": {&lt;BR /&gt;"Status": "value",&lt;BR /&gt;"MacAddress": "value",&lt;BR /&gt;"ReferenceID": "value",&lt;BR /&gt;"Network": "value",&lt;BR /&gt;"LeaseState": "value",&lt;BR /&gt;"Objects": [&lt;BR /&gt;"value",&lt;BR /&gt;"value",&lt;BR /&gt;"value",&lt;BR /&gt;"value"&lt;BR /&gt;],&lt;BR /&gt;"IsConflict": false,&lt;BR /&gt;"Names": [&lt;BR /&gt;"value",&lt;BR /&gt;"value",&lt;BR /&gt;"value"&lt;BR /&gt;],&lt;BR /&gt;"NetworkView": "value",&lt;BR /&gt;"Extattrs": {&lt;BR /&gt;"Organization": {&lt;BR /&gt;"value": "value",&lt;BR /&gt;"inheritance_source": {&lt;BR /&gt;"_ref": "value"&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;"Site": {&lt;BR /&gt;"value": "value",&lt;BR /&gt;"inheritance_source": {&lt;BR /&gt;"_ref": "value"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;"Usage": [&lt;BR /&gt;"value",&lt;BR /&gt;"DHCP"&lt;BR /&gt;],&lt;BR /&gt;"IpAddress": "value",&lt;BR /&gt;"DhcpClientIdentifier": "value",&lt;BR /&gt;"Types": [&lt;BR /&gt;"value",&lt;BR /&gt;"value",&lt;BR /&gt;"value",&lt;BR /&gt;"value"&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My questions are :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Am I using the right string in Extended Context to get the fields I want?&lt;/LI&gt;&lt;LI&gt;Is it possible to extract the single value instead&amp;nbsp; of arrays?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thank you for reading and your help on this topic.&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jun 2022 13:25:44 GMT</pubDate>
    <dc:creator>AlexandreBorgo</dc:creator>
    <dc:date>2022-06-29T13:25:44Z</dc:date>
    <item>
      <title>Unable to retrieve output value while using extended context</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/unable-to-retrieve-output-value-while-using-extended-context/m-p/507087#M1005</link>
      <description>&lt;P&gt;Hello team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to use the extended context feature to keep only the data I'm interrested in and put them where I need them to be.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The automation I'm using is &lt;STRONG&gt;infoblox-get-ip&lt;/STRONG&gt; from Infoblox integration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the output of the automation:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screen1.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/42045i46C91B53522A0337/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="screen1.png" alt="screen1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; I'm setting the following string in the &lt;STRONG&gt;Extended Context&lt;/STRONG&gt; field (splitted on multiple lines for better visibility):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IpInformation.status=result.status::&lt;BR /&gt;IpInformation.network=result.network::&lt;BR /&gt;IpInformation.names=result.names::&lt;BR /&gt;IpInformation.site=result.extattrs.site.value::&lt;BR /&gt;IpInformation.macaddress=result.macaddress&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm getting the following result (information is censored, InRange and Pivate come from another integration):&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screen3.PNG" style="width: 316px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/42047i4F50CA64FCD27EB3/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="screen3.PNG" alt="screen3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As you can see only some of the fields are present in the output.&lt;/P&gt;&lt;P&gt;The following fields are missing : macaddress and extattrs.site.value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Moreover all fields comming from the extended context functionnality are arrays (insteal of single value as the real output, except for names).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the full context printed:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;{&lt;BR /&gt;"IpInformation": {&lt;BR /&gt;"status": [&lt;BR /&gt;"value"&lt;BR /&gt;],&lt;BR /&gt;"InRange": "value",&lt;BR /&gt;"names": [&lt;BR /&gt;"value",&lt;BR /&gt;"value",&lt;BR /&gt;"value"&lt;BR /&gt;],&lt;BR /&gt;"Private": "value",&lt;BR /&gt;"network": [&lt;BR /&gt;"value"&lt;BR /&gt;]&lt;BR /&gt;},&lt;BR /&gt;"Infoblox": {&lt;BR /&gt;"IP": {&lt;BR /&gt;"Status": "value",&lt;BR /&gt;"MacAddress": "value",&lt;BR /&gt;"ReferenceID": "value",&lt;BR /&gt;"Network": "value",&lt;BR /&gt;"LeaseState": "value",&lt;BR /&gt;"Objects": [&lt;BR /&gt;"value",&lt;BR /&gt;"value",&lt;BR /&gt;"value",&lt;BR /&gt;"value"&lt;BR /&gt;],&lt;BR /&gt;"IsConflict": false,&lt;BR /&gt;"Names": [&lt;BR /&gt;"value",&lt;BR /&gt;"value",&lt;BR /&gt;"value"&lt;BR /&gt;],&lt;BR /&gt;"NetworkView": "value",&lt;BR /&gt;"Extattrs": {&lt;BR /&gt;"Organization": {&lt;BR /&gt;"value": "value",&lt;BR /&gt;"inheritance_source": {&lt;BR /&gt;"_ref": "value"&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;"Site": {&lt;BR /&gt;"value": "value",&lt;BR /&gt;"inheritance_source": {&lt;BR /&gt;"_ref": "value"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;"Usage": [&lt;BR /&gt;"value",&lt;BR /&gt;"DHCP"&lt;BR /&gt;],&lt;BR /&gt;"IpAddress": "value",&lt;BR /&gt;"DhcpClientIdentifier": "value",&lt;BR /&gt;"Types": [&lt;BR /&gt;"value",&lt;BR /&gt;"value",&lt;BR /&gt;"value",&lt;BR /&gt;"value"&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My questions are :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Am I using the right string in Extended Context to get the fields I want?&lt;/LI&gt;&lt;LI&gt;Is it possible to extract the single value instead&amp;nbsp; of arrays?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thank you for reading and your help on this topic.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 13:25:44 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/unable-to-retrieve-output-value-while-using-extended-context/m-p/507087#M1005</guid>
      <dc:creator>AlexandreBorgo</dc:creator>
      <dc:date>2022-06-29T13:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to retrieve output value while using extended context</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/unable-to-retrieve-output-value-while-using-extended-context/m-p/507312#M1007</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/162743"&gt;@AlexandreBorgo&lt;/a&gt;, You cannot select the array items inside extended context. Just dump all the data to context and then use what you need. Use the command like below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;!infoblox-get-ip extend-context=data=&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 03:15:46 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/unable-to-retrieve-output-value-while-using-extended-context/m-p/507312#M1007</guid>
      <dc:creator>jfernandes1</dc:creator>
      <dc:date>2022-06-30T03:15:46Z</dc:date>
    </item>
  </channel>
</rss>

