<?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: I want to attach attachment in incident using playbook. in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/i-want-to-attach-attachment-in-incident-using-playbook/m-p/530576#M1797</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/269211"&gt;@shreyash_412&lt;/a&gt;, Not sure I understand you case entirely. I have provided a solution for both my assumptions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have data stored in the context and are trying to save that to the context as a file. You can try the &lt;CODE&gt;!FileCreateAndUploadV2 filename="textfile.txt" data_encoding=raw data=${ContextKeyWhereDataIsStored}&lt;/CODE&gt; command. The result of the automation creates a file inside the context.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are trying the move a file from the "File" context key to the "incident.attachments "key. Then try below command. The automation is deprecated but can still work.&amp;nbsp;&lt;CODE&gt;!DemistoUploadFileV2 entryID=406@0ede5a91-b496-4414-87be-80c42d1486d4 incidentID=${incident.id} target="incident attachment"&lt;/CODE&gt;. Note that a duplicate file will be created in the File key.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Feb 2023 02:25:26 GMT</pubDate>
    <dc:creator>jfernandes1</dc:creator>
    <dc:date>2023-02-10T02:25:26Z</dc:date>
    <item>
      <title>I want to attach attachment in incident using playbook.</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/i-want-to-attach-attachment-in-incident-using-playbook/m-p/529110#M1744</link>
      <description>&lt;P&gt;Hi Team, I have one use case I wanted to attach an attachment in an incident using the playbook. So I have one command which retrieves attachments of particular incidents.&amp;nbsp; I have created one playbook which first retrieves the attachment of a particular incident and then in the second task I'm using setIncident command to update incidents with attachments, but It is not working.&lt;/P&gt;
&lt;P&gt;In Context data, there is a File object but I'm not able to set it in a particular incident using setIncident command. Below I attached a screenshot of setIncident task.&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="shreyash_412_1-1675055542282.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/47508iB4BECB1034F53CB6/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="shreyash_412_1-1675055542282.png" alt="shreyash_412_1-1675055542282.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 05:19:34 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/i-want-to-attach-attachment-in-incident-using-playbook/m-p/529110#M1744</guid>
      <dc:creator>shreyash_412</dc:creator>
      <dc:date>2023-01-30T05:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: I want to attach attachment in incident using playbook.</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/i-want-to-attach-attachment-in-incident-using-playbook/m-p/530576#M1797</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/269211"&gt;@shreyash_412&lt;/a&gt;, Not sure I understand you case entirely. I have provided a solution for both my assumptions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have data stored in the context and are trying to save that to the context as a file. You can try the &lt;CODE&gt;!FileCreateAndUploadV2 filename="textfile.txt" data_encoding=raw data=${ContextKeyWhereDataIsStored}&lt;/CODE&gt; command. The result of the automation creates a file inside the context.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are trying the move a file from the "File" context key to the "incident.attachments "key. Then try below command. The automation is deprecated but can still work.&amp;nbsp;&lt;CODE&gt;!DemistoUploadFileV2 entryID=406@0ede5a91-b496-4414-87be-80c42d1486d4 incidentID=${incident.id} target="incident attachment"&lt;/CODE&gt;. Note that a duplicate file will be created in the File key.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 02:25:26 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/i-want-to-attach-attachment-in-incident-using-playbook/m-p/530576#M1797</guid>
      <dc:creator>jfernandes1</dc:creator>
      <dc:date>2023-02-10T02:25:26Z</dc:date>
    </item>
  </channel>
</rss>

