<?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 Issue Working with Files in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/issue-working-with-files/m-p/386556#M127</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am having some trouble working with files in an incident.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have integrated an API that need a path to upload a file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This API checks the file extension in the path and as I have seen, file paths in XSOAR incidents are something like 80_916@80. I would need to have access to an absolute path or a way to get a path with the file name at the end of it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe exists a way to move a file to a specific path or something that could help me with this issue. I haven't found any documentation about this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could you help me?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Alejandro.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Feb 2021 11:13:08 GMT</pubDate>
    <dc:creator>abracamontesauz</dc:creator>
    <dc:date>2021-02-18T11:13:08Z</dc:date>
    <item>
      <title>Issue Working with Files</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/issue-working-with-files/m-p/386556#M127</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am having some trouble working with files in an incident.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have integrated an API that need a path to upload a file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This API checks the file extension in the path and as I have seen, file paths in XSOAR incidents are something like 80_916@80. I would need to have access to an absolute path or a way to get a path with the file name at the end of it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe exists a way to move a file to a specific path or something that could help me with this issue. I haven't found any documentation about this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could you help me?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Alejandro.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 11:13:08 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/issue-working-with-files/m-p/386556#M127</guid>
      <dc:creator>abracamontesauz</dc:creator>
      <dc:date>2021-02-18T11:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Issue Working with Files</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/issue-working-with-files/m-p/386610#M128</link>
      <description>&lt;P&gt;Hi Alejandro!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's important to remember that we intentionally containerize all of the Integration and Automation code using Docker.&amp;nbsp; The purpose of this is to keep that code from accessing files on the server filesystem.&amp;nbsp; So even if you actually had the actual file path you can't actually use it because you'd just be attempting to access the non-existent path in the container.&amp;nbsp; (Just an FYI: in most cases it should be in /var/lib/demisto/attachments where it is stored with a hash filename)&amp;nbsp;&lt;/P&gt;&lt;P&gt;What we do provide for you is a filehandle.&amp;nbsp; This enables you to pass the filehandle any time you would normally want to use a file without having to know the exact location on the server.&amp;nbsp; So if you are using it to sandbox a file for instance you don't have to give it the full path to the file you just pass the filehandle and XSOAR will provide the file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 15:39:09 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/issue-working-with-files/m-p/386610#M128</guid>
      <dc:creator>DougCouch</dc:creator>
      <dc:date>2021-02-18T15:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: Issue Working with Files</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/issue-working-with-files/m-p/387109#M130</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;I have been testing with the information you have provided but I have not been able to upload the file.&lt;/P&gt;&lt;P&gt;I am working with the API's owner to solve the problem by his side reading the extension from the file's metadata, but it would be very useful to have a way to access a file using the actual name or path.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;P&gt;Alejandro.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 10:41:42 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/issue-working-with-files/m-p/387109#M130</guid>
      <dc:creator>abracamontesauz</dc:creator>
      <dc:date>2021-02-22T10:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Issue Working with Files</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/issue-working-with-files/m-p/387118#M131</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/172244"&gt;@abracamontesauz&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I understand correctly, you would like to check that a file uploaded into an incident has a specific file extension BEFORE uploading it? I'll try and cover all scenarios.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Firstly, when referencing a files path in an automation or integration, one can use the `demisto.getFilePath(&amp;lt;entryID&amp;gt;)` command to retrieve the data. This will give you the path (that you can use, for example, with Python `open()` command and also the filename (including extension).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When uploading a file to the incident as part of the incident creation, there isn't&amp;nbsp; way to specifically check the extension prior to uploading the file. The file will be included, however, you can make it subject to pre-processing rules. This would involve creating a new pre-processing rule that matched the incident type you are creating:&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="ABurt_0-1613993991561.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/30026i06831C0CD9FAAA5F/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="ABurt_0-1613993991561.png" alt="ABurt_0-1613993991561.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can choose here to either simply drop the incident, or perhaps, run and automation script. Dropping the incident could happen when the attachment criteria are met:&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="ABurt_1-1613994084577.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/30027i87A9DE87FFDE35DC/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="ABurt_1-1613994084577.png" alt="ABurt_1-1613994084577.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Above is an example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using an automation script could give you more control over what happens but is a little more advanced.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could also choose to handle the incident (depending on it's attachments) at the playbook level. This could also involve automatically closing the incident if attachment criteria are not met.&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="ABurt_2-1613994394371.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/30028i39DC70538598E5C5/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="ABurt_2-1613994394371.png" alt="ABurt_2-1613994394371.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Example above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 11:46:46 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/issue-working-with-files/m-p/387118#M131</guid>
      <dc:creator>ABurt</dc:creator>
      <dc:date>2021-02-22T11:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Issue Working with Files</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/issue-working-with-files/m-p/387124#M133</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/169171"&gt;@ABurt&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your response, that information will be very useful for me in the future.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Although, my problem is not to check the file extension at Demisto's level. The problem is that the external API which I am using, receives the file like "&lt;EM&gt;&amp;lt;_io.BufferedReader name='71_313@71'&amp;gt;&lt;/EM&gt;" using python open() method, and checks that name to read the extension. I need that name to be something like "&lt;EM&gt;myfile.xls&lt;/EM&gt;" so the API could read it properly and recognize the file to store it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope it's is clearer now.&lt;/P&gt;&lt;P&gt;Thank's in advance,&lt;/P&gt;&lt;P&gt;Alejandro.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 12:13:06 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/issue-working-with-files/m-p/387124#M133</guid>
      <dc:creator>abracamontesauz</dc:creator>
      <dc:date>2021-02-22T12:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Issue Working with Files</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/issue-working-with-files/m-p/387126#M134</link>
      <description>&lt;P&gt;Are you referring to the XSOAR API, if so, which endpoint?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 12:44:48 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/issue-working-with-files/m-p/387126#M134</guid>
      <dc:creator>ABurt</dc:creator>
      <dc:date>2021-02-22T12:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Issue Working with Files</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/issue-working-with-files/m-p/387129#M135</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No, I am using an external API that I have implemented.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 12:47:45 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/issue-working-with-files/m-p/387129#M135</guid>
      <dc:creator>abracamontesauz</dc:creator>
      <dc:date>2021-02-22T12:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Issue Working with Files</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/issue-working-with-files/m-p/387132#M136</link>
      <description>&lt;P&gt;So you have an integration that is using an API from a 3rd party product and you would like to pass it an absolute file path?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 13:14:55 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/issue-working-with-files/m-p/387132#M136</guid>
      <dc:creator>ABurt</dc:creator>
      <dc:date>2021-02-22T13:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Issue Working with Files</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/issue-working-with-files/m-p/387133#M137</link>
      <description>&lt;P&gt;That's exactly the point, sorry for my explanations.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 13:22:15 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/issue-working-with-files/m-p/387133#M137</guid>
      <dc:creator>abracamontesauz</dc:creator>
      <dc:date>2021-02-22T13:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Issue Working with Files</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/issue-working-with-files/m-p/387161#M138</link>
      <description>&lt;P&gt;OK, I understand.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;In your integration, call the "&lt;FONT face="courier new,courier"&gt;demisto.getFilePath(&amp;lt;entryID&amp;gt;)&lt;/FONT&gt;" providing the entryID (which is the 123@123&amp;nbsp;&amp;nbsp;reference). This will return a JSON dictionary with the key names "name" and "path". The name is the original filename and the path is the absolute path that can be used in opening a file handle.&lt;/P&gt;&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;For example:&lt;BR /&gt;273@6cf5026f-8199-45ab-80fc-199ddf3291ab is a zip file in my playground. When using &lt;FONT face="courier new,courier"&gt;demisto.getFilePath("273@6cf5026f-8199-45ab-80fc-199ddf3291ab")&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;I receive:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{&lt;/FONT&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "name": "&lt;SPAN&gt;view-x64.zip",&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; "path": "6cf5026f-8199-45ab-80fc-199ddf3291ab_273@6cf5026f-8199-45ab-80fc-199ddf3291ab"&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I assigned the return value to "res" (for example), I can then use:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;with open(res.get('path'), "rb") as fp:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; print(f"I have opened {res.get('name')} at {fp})&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 15:03:30 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/issue-working-with-files/m-p/387161#M138</guid>
      <dc:creator>ABurt</dc:creator>
      <dc:date>2021-02-22T15:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Issue Working with Files</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/issue-working-with-files/m-p/387326#M139</link>
      <description>&lt;P&gt;Good morning Adam,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my integration I had already used the function getFilePath.&lt;/P&gt;&lt;P&gt;I have something like:&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; file=demisto.getFilePath(file_id)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; file=open(file['path'],'rb')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Then, I use this variable as the input for the API request because if I try to open file['name'] it can't find the file. The problem is that this variable is equals to&amp;nbsp;&lt;EM&gt;&amp;lt;_io.BufferedReader name='71_356@71'&amp;gt;&amp;nbsp;&lt;/EM&gt;and it should be&amp;nbsp;&lt;EM&gt;&amp;lt;_io.BufferedReader name='myfile.xls'&amp;gt;&lt;/EM&gt;&amp;nbsp;to allow the API to read the extension properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks once again,&lt;/P&gt;&lt;P&gt;Alejandro.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 09:20:16 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/issue-working-with-files/m-p/387326#M139</guid>
      <dc:creator>abracamontesauz</dc:creator>
      <dc:date>2021-02-23T09:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: Issue Working with Files</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/issue-working-with-files/m-p/387334#M140</link>
      <description>&lt;P&gt;Now I understand. There isn't anything to be done about the filename in the incident.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can only suggest perhaps doing something directly with the io library to manipulate the "name" in a file handle, howeverm I don't think this is possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One workaround would be to (excuse the pseudo code):&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;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;def get_handle(file_data):&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; return_handle = open(file_data['name'], "wb")&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; with open(file_data['path'], "rb") as fp:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return_handle.write(fp.read())&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return_handle.seek(0,0)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; return return_handle&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;def main():&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; args = demisto.args()&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; entryID = args['entryID']&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; file_data = demisto.getFilePath(entryID)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; new_handle = get_handle(file_data)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This would temporarily write data to a file named aptly and return the handle you need. This file, though, would only exist throughout the execution of the intergation command.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 11:13:31 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/issue-working-with-files/m-p/387334#M140</guid>
      <dc:creator>ABurt</dc:creator>
      <dc:date>2021-02-23T11:13:31Z</dc:date>
    </item>
  </channel>
</rss>

