<?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 trying to return raw output vs formatted in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/trying-to-return-raw-output-vs-formatted/m-p/467887#M586</link>
    <description>&lt;P&gt;!py script=`return_results(demisto.executeCommand("azure-sentinel-list-incident-entities", {"incident_id":"xxxxxxx-xxxxxx-xxxxx"}))`&lt;BR /&gt;&lt;BR /&gt;The above works and turns in human readable format; however i want to return the raw json.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works:&lt;BR /&gt;!azure-sentinel-list-incident-entities incident_id=xxxx-xxxx-xxxx raw-response=true&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However this does not:&lt;/P&gt;&lt;P&gt;&amp;nbsp;!py script=`return_results(demisto.executeCommand("azure-sentinel-list-incident-entities", {"incident_id":"xxxx-xxxx-xxxx"}, {"raw-response":"true"}))`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the following error:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;TypeError: executeCommand() takes exactly 3 arguments (4 given)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I need it in python, but I can't figure out the format to return the raw json.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated,&lt;BR /&gt;&lt;BR /&gt;Boyd&lt;/P&gt;</description>
    <pubDate>Wed, 23 Feb 2022 17:48:38 GMT</pubDate>
    <dc:creator>JoshBoyd</dc:creator>
    <dc:date>2022-02-23T17:48:38Z</dc:date>
    <item>
      <title>trying to return raw output vs formatted</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/trying-to-return-raw-output-vs-formatted/m-p/467887#M586</link>
      <description>&lt;P&gt;!py script=`return_results(demisto.executeCommand("azure-sentinel-list-incident-entities", {"incident_id":"xxxxxxx-xxxxxx-xxxxx"}))`&lt;BR /&gt;&lt;BR /&gt;The above works and turns in human readable format; however i want to return the raw json.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works:&lt;BR /&gt;!azure-sentinel-list-incident-entities incident_id=xxxx-xxxx-xxxx raw-response=true&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However this does not:&lt;/P&gt;&lt;P&gt;&amp;nbsp;!py script=`return_results(demisto.executeCommand("azure-sentinel-list-incident-entities", {"incident_id":"xxxx-xxxx-xxxx"}, {"raw-response":"true"}))`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the following error:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;TypeError: executeCommand() takes exactly 3 arguments (4 given)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I need it in python, but I can't figure out the format to return the raw json.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated,&lt;BR /&gt;&lt;BR /&gt;Boyd&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 17:48:38 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/trying-to-return-raw-output-vs-formatted/m-p/467887#M586</guid>
      <dc:creator>JoshBoyd</dc:creator>
      <dc:date>2022-02-23T17:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: trying to return raw output vs formatted</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/trying-to-return-raw-output-vs-formatted/m-p/467915#M587</link>
      <description>Just pass it as another argument. This should work: return_results(demisto.executeCommand("azure-sentinel-list-incident-entities", {"incident_id":"xxxxxxx-xxxxxx-xxxxx", "raw-response":"true"}))</description>
      <pubDate>Wed, 23 Feb 2022 18:25:55 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/trying-to-return-raw-output-vs-formatted/m-p/467915#M587</guid>
      <dc:creator>jgomes</dc:creator>
      <dc:date>2022-02-23T18:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: trying to return raw output vs formatted</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/trying-to-return-raw-output-vs-formatted/m-p/467945#M589</link>
      <description>&lt;P&gt;Thanks, I see what I did wrong there...&lt;BR /&gt;Though, oddly this returns the same thing twice:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;entities = demisto.executeCommand("azure-sentinel-list-incident-entities", {"incident_id":external_id})&lt;BR /&gt;entitiesRaw = demisto.executeCommand("azure-sentinel-list-incident-entities", {"incident_id":external_id,"raw-response":"true"})&lt;BR /&gt;return_results(entities)&lt;BR /&gt;return_results(entitiesRaw)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was expecting the raw json output similar to the following command, but return_results seems to be formatting it in human readable format; does that seem right?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;This gives me what I need, but I need to put it in python code:&lt;/P&gt;&lt;P&gt;!azure-sentinel-list-incident-entities incident_id=xxxx-xxxx-xxxx raw-response=true&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 18:49:52 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/trying-to-return-raw-output-vs-formatted/m-p/467945#M589</guid>
      <dc:creator>JoshBoyd</dc:creator>
      <dc:date>2022-02-23T18:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: trying to return raw output vs formatted</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/trying-to-return-raw-output-vs-formatted/m-p/467948#M590</link>
      <description>&lt;P&gt;Try this and see if it does what you are looking for.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;entitiesRaw = demisto.executeCommand("azure-sentinel-list-incident-entities", {"incident_id":external_id})[0]["Contents"]&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 18:53:32 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/trying-to-return-raw-output-vs-formatted/m-p/467948#M590</guid>
      <dc:creator>tyler_bailey</dc:creator>
      <dc:date>2022-02-23T18:53:32Z</dc:date>
    </item>
  </channel>
</rss>

