<?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: Get the output of demisto.results() inside an automation for &amp;quot;msgraph-download-file&amp;quot; in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/get-the-output-of-demisto-results-inside-an-automation-for-quot/m-p/542737#M2154</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Josep_0-1684500120813.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/50254i61F9034F11417FCD/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Josep_0-1684500120813.png" alt="Josep_0-1684500120813.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 19 May 2023 12:42:10 GMT</pubDate>
    <dc:creator>Josep</dc:creator>
    <dc:date>2023-05-19T12:42:10Z</dc:date>
    <item>
      <title>Get the output of demisto.results() inside an automation for "msgraph-download-file"</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/get-the-output-of-demisto-results-inside-an-automation-for-quot/m-p/542735#M2153</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;We'd like to use the command&amp;nbsp;"&lt;SPAN&gt;msgraph-download-file"&lt;/SPAN&gt; insde an automation, then use the FileID to import a csv and finally convert it to pandas. The problem we find is that the output of "&lt;SPAN&gt;msgraph-download-file"&lt;/SPAN&gt; is completely different when it's is used inside an automation.&lt;/P&gt;
&lt;P&gt;How can we get this file inside an automation?&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 12:20:42 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/get-the-output-of-demisto-results-inside-an-automation-for-quot/m-p/542735#M2153</guid>
      <dc:creator>Josep</dc:creator>
      <dc:date>2023-05-19T12:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get the output of demisto.results() inside an automation for "msgraph-download-file"</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/get-the-output-of-demisto-results-inside-an-automation-for-quot/m-p/542737#M2154</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Josep_0-1684500120813.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/50254i61F9034F11417FCD/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Josep_0-1684500120813.png" alt="Josep_0-1684500120813.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 12:42:10 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/get-the-output-of-demisto-results-inside-an-automation-for-quot/m-p/542737#M2154</guid>
      <dc:creator>Josep</dc:creator>
      <dc:date>2023-05-19T12:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Get the output of demisto.results() inside an automation for "msgraph-download-file"</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/get-the-output-of-demisto-results-inside-an-automation-for-quot/m-p/542745#M2156</link>
      <description>&lt;P&gt;How about just opening the file with the automation after the playbook downloads and returns it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pass in the entryid of the file to the automation, and just have the automation go open it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;entry_id = demisto.args().get('entry_id')

res = demisto.getFilePath(entry_id)
if not res:
    return_error("No file with that entry id found")

file_path = res.get("path")

with open(file_path, 'rb') as f:
    data = f.read()

# do something with the data.&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 14:43:26 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/get-the-output-of-demisto-results-inside-an-automation-for-quot/m-p/542745#M2156</guid>
      <dc:creator>MBeauchamp2</dc:creator>
      <dc:date>2023-05-19T14:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Get the output of demisto.results() inside an automation for "msgraph-download-file"</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/get-the-output-of-demisto-results-inside-an-automation-for-quot/m-p/542752#M2157</link>
      <description>&lt;P&gt;Thanks for the response,&lt;/P&gt;
&lt;P&gt;we'd like to all the process inside the automation, download the file, open it and finally convert it to pandas.&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 15:30:54 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/get-the-output-of-demisto-results-inside-an-automation-for-quot/m-p/542752#M2157</guid>
      <dc:creator>Josep</dc:creator>
      <dc:date>2023-05-19T15:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Get the output of demisto.results() inside an automation for "msgraph-download-file"</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/get-the-output-of-demisto-results-inside-an-automation-for-quot/m-p/544953#M2215</link>
      <description>&lt;P&gt;&lt;BR /&gt;Thank you very much for answering,&lt;/P&gt;
&lt;P&gt;the key is that we would like to be able to directly use the "msgraph-download-file" command inside the automation, without the need to create a playbook with a task using the function to set the "File" in the context.We'd like to use the direct output of:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;demisto.executeCommand("msgraph-download-file" ,{vars})&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 14:34:52 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/get-the-output-of-demisto-results-inside-an-automation-for-quot/m-p/544953#M2215</guid>
      <dc:creator>Josep</dc:creator>
      <dc:date>2023-06-06T14:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: Get the output of demisto.results() inside an automation for "msgraph-download-file"</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/get-the-output-of-demisto-results-inside-an-automation-for-quot/m-p/548350#M2287</link>
      <description>&lt;P&gt;The problem is that the direct output of&amp;nbsp;msgraph-download-file is *not* a file, it's a war room entry which contains a reference to a file. Until that war room entry has been written and the file reference is usable, it's not possible to get the data contained in the file. The only way to do that is to have two separate tasks, which requires a playbook.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you absolutely can't use a playbook for some reason, the only option I see is to modify the integration to add a variant of&amp;nbsp;msgraph-download-file which does the required pandas processing before returning anything.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 04:20:22 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/get-the-output-of-demisto-results-inside-an-automation-for-quot/m-p/548350#M2287</guid>
      <dc:creator>chrking</dc:creator>
      <dc:date>2023-07-06T04:20:22Z</dc:date>
    </item>
  </channel>
</rss>

