<?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: Closing an incident on CortexXDR with pre-processing. in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/closing-an-incident-on-cortexxdr-with-pre-processing/m-p/546465#M2243</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;The script will only drop processing if it returns false. What do you mean by marking them?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Jun 2023 10:51:59 GMT</pubDate>
    <dc:creator>gyldz</dc:creator>
    <dc:date>2023-06-20T10:51:59Z</dc:date>
    <item>
      <title>Closing an incident on CortexXDR with pre-processing.</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/closing-an-incident-on-cortexxdr-with-pre-processing/m-p/546452#M2242</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to mark the Cortex XDR incident coming into XSOAR as TP or FP with preprocessing. Does preprocessing allow this (run a script)? Or does it only do drop processing?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 09:22:02 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/closing-an-incident-on-cortexxdr-with-pre-processing/m-p/546452#M2242</guid>
      <dc:creator>YilmazDincer</dc:creator>
      <dc:date>2023-06-20T09:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: Closing an incident on CortexXDR with pre-processing.</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/closing-an-incident-on-cortexxdr-with-pre-processing/m-p/546465#M2243</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;The script will only drop processing if it returns false. What do you mean by marking them?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 10:51:59 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/closing-an-incident-on-cortexxdr-with-pre-processing/m-p/546465#M2243</guid>
      <dc:creator>gyldz</dc:creator>
      <dc:date>2023-06-20T10:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Closing an incident on CortexXDR with pre-processing.</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/closing-an-incident-on-cortexxdr-with-pre-processing/m-p/546468#M2244</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/287891"&gt;@gyldz&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="YilmazDincer_0-1687258535890.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/50988i4DB410C3DA244892/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="YilmazDincer_0-1687258535890.png" alt="YilmazDincer_0-1687258535890.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;For example, there will be a condition and if it matches that condition, it will execute the command I show below. This command closes the incident in xdr (marked FP or TP)&lt;BR /&gt;pseudo code:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;def condition():
    "pseudo"

if condition:
    demisto.executeCommand('xdr-update-incident', {'incidentid': x, 'status': 'TP'})
else:
    demisto.result(True) ## if it doesn't match, don't it.
'This code is pseudo'&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 10:59:06 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/closing-an-incident-on-cortexxdr-with-pre-processing/m-p/546468#M2244</guid>
      <dc:creator>YilmazDincer</dc:creator>
      <dc:date>2023-06-20T10:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Closing an incident on CortexXDR with pre-processing.</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/closing-an-incident-on-cortexxdr-with-pre-processing/m-p/546516#M2245</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can do that. You do not have to return a False results. I tested the below one and it works fine. so you can change according to your needs.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;try:
    result = "FP"
    if results == "FP":
        demisto.executeCommand("send-notification", {"channel" :"xsoar-implementation", "message" : "FP alert"})
    else:
        demise.results(True)
except:
    demise.results(True)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 14:20:23 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/closing-an-incident-on-cortexxdr-with-pre-processing/m-p/546516#M2245</guid>
      <dc:creator>gyldz</dc:creator>
      <dc:date>2023-06-20T14:20:23Z</dc:date>
    </item>
  </channel>
</rss>

