<?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 can't close the incident with Pre-processing Script in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/i-can-t-close-the-incident-with-pre-processing-script/m-p/548917#M2303</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/242705"&gt;@YilmazDincer&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as I understood you don't want the incident to be dropped but closed. You cannot run a pre-processing script to close the incident as you will need an incident id which does not exist at that stage. If you don't want the incident to be dropped, I can think of two solutions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Using post-processing script to close CB alert. I assume you need the below command to close it.&lt;/P&gt;
&lt;P&gt;demisto.executeCommand("cb-edr-alert-update", {"channel" :alert_id_extracted_from_incident, "status" : "Resolved"})&lt;/P&gt;
&lt;P&gt;2. You can develop and run automation as a first task in the playbook. This task will perform the checks to decide if it should be closed and will return yes or no. If it returns yes you will run&lt;STRONG&gt;&amp;nbsp;cb-edr-alert-update&amp;nbsp;&lt;/STRONG&gt;and&amp;nbsp;&lt;STRONG&gt;closeInvestigation&lt;/STRONG&gt; automation script as a task.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope I could answer your question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jul 2023 12:57:51 GMT</pubDate>
    <dc:creator>gyldz</dc:creator>
    <dc:date>2023-07-11T12:57:51Z</dc:date>
    <item>
      <title>I can't close the incident with Pre-processing Script</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/i-can-t-close-the-incident-with-pre-processing-script/m-p/548901#M2302</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the incoming incident for CarbonBlack I use some conditions. If it matches these conditions i want to close the incident in CarbonBlack and XSOAR. (I use pre-processing script)&lt;BR /&gt;If i want to close in CarbonBlack and drop in XSOAR, i use demisto.results("False") but i don't want it.&amp;nbsp; I want to close in both(XSOAR and CarbonBlack).&lt;/P&gt;
&lt;P&gt;How can i do that?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 11:01:10 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/i-can-t-close-the-incident-with-pre-processing-script/m-p/548901#M2302</guid>
      <dc:creator>YilmazDincer</dc:creator>
      <dc:date>2023-07-11T11:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: I can't close the incident with Pre-processing Script</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/i-can-t-close-the-incident-with-pre-processing-script/m-p/548917#M2303</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/242705"&gt;@YilmazDincer&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as I understood you don't want the incident to be dropped but closed. You cannot run a pre-processing script to close the incident as you will need an incident id which does not exist at that stage. If you don't want the incident to be dropped, I can think of two solutions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Using post-processing script to close CB alert. I assume you need the below command to close it.&lt;/P&gt;
&lt;P&gt;demisto.executeCommand("cb-edr-alert-update", {"channel" :alert_id_extracted_from_incident, "status" : "Resolved"})&lt;/P&gt;
&lt;P&gt;2. You can develop and run automation as a first task in the playbook. This task will perform the checks to decide if it should be closed and will return yes or no. If it returns yes you will run&lt;STRONG&gt;&amp;nbsp;cb-edr-alert-update&amp;nbsp;&lt;/STRONG&gt;and&amp;nbsp;&lt;STRONG&gt;closeInvestigation&lt;/STRONG&gt; automation script as a task.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope I could answer your question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 12:57:51 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/i-can-t-close-the-incident-with-pre-processing-script/m-p/548917#M2303</guid>
      <dc:creator>gyldz</dc:creator>
      <dc:date>2023-07-11T12:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: I can't close the incident with Pre-processing Script</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/i-can-t-close-the-incident-with-pre-processing-script/m-p/549113#M2307</link>
      <description>&lt;P&gt;Thank you for your reply. I thought I'd leave incidents open and close them from the playbook. But I thought maybe there is a solution like demisto.result(2).&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 14:54:14 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/i-can-t-close-the-incident-with-pre-processing-script/m-p/549113#M2307</guid>
      <dc:creator>YilmazDincer</dc:creator>
      <dc:date>2023-07-12T14:54:14Z</dc:date>
    </item>
  </channel>
</rss>

