<?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: How to Find and update existing incidents through Integration in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/how-to-find-and-update-existing-incidents-through-integration/m-p/522698#M1470</link>
    <description>&lt;P&gt;Thanks for you reply.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not able to open the video. It says Access Denied. Is there some other video or other location than what is mentioned above?&lt;/P&gt;</description>
    <pubDate>Tue, 29 Nov 2022 06:10:57 GMT</pubDate>
    <dc:creator>sudhesub</dc:creator>
    <dc:date>2022-11-29T06:10:57Z</dc:date>
    <item>
      <title>How to Find and update existing incidents through Integration</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/how-to-find-and-update-existing-incidents-through-integration/m-p/522327#M1448</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are providing partner integration for our product and this is the requirement.&lt;/P&gt;
&lt;P&gt;My product # generates/creates 'Cases' which are pulled in&lt;LI-PRODUCT title="Cortex XSOAR" id="Cortex_XSOAR"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp; as incidents using fetchIncidents call. It might be possible that sometimes a 'Case' in our product gets updated and gets pulled in XSOAR again. The custom attribute used here is caseId&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now I have more than one incident but with same caseId which is not desirable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What we want to do is to pull the particular incident from XSOAR based on the custom attribute (caseId) and update it rather than creating new incident. And we need to do it during fetchIncidents itself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I asked this question on Slack and I was suggested with this&lt;/P&gt;
&lt;PRE class="" data-stringify-type="pre"&gt;demisto.execute_command("SearchIncidentsV2", {"query": $QUERY})

demisto.execute_command("setIncident", {"id": $ID, $CUSTOM_FIELD_NAME: $CUSTOM_FIELD_VALUE})&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;The problem with above scripts is that we can't run them from integration.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 06:15:22 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/how-to-find-and-update-existing-incidents-through-integration/m-p/522327#M1448</guid>
      <dc:creator>sudhesub</dc:creator>
      <dc:date>2022-11-24T06:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to Find and update existing incidents through Integration</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/how-to-find-and-update-existing-incidents-through-integration/m-p/522606#M1462</link>
      <description>&lt;P&gt;This sounds like a perfect use case for a preprocessing rule.&amp;nbsp; In this case make sure you've mapped the Case ID from the external system to an XSOAR field (Event ID is a good option), and then use a preprocessing rule to drop new cases for which an existing XSOAR Incident with the same Case ID already exists.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have a video on preprocessing on our XSOAR Engineer Training Series:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://live.paloaltonetworks.com/t5/cortex-xsoar-how-to-videos/cortex-xsoar-how-to-customer-success-engineering-training-video/ta-p/484604" target="_blank"&gt;https://live.paloaltonetworks.com/t5/cortex-xsoar-how-to-videos/cortex-xsoar-how-to-customer-success-engineering-training-video/ta-p/484604&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the docs on preprocessing:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.paloaltonetworks.com/cortex/cortex-xsoar/6-9/cortex-xsoar-admin/incidents/incident-management/incident-de-duplication/creating-pre-process-rules-for-incidents" target="_blank"&gt;https://docs.paloaltonetworks.com/cortex/cortex-xsoar/6-9/cortex-xsoar-admin/incidents/incident-management/incident-de-duplication/creating-pre-process-rules-for-incidents&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://xsoar.pan.dev/docs/incidents/incident-pre-processing" target="_blank"&gt;https://xsoar.pan.dev/docs/incidents/incident-pre-processing&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 16:07:29 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/how-to-find-and-update-existing-incidents-through-integration/m-p/522606#M1462</guid>
      <dc:creator>MBeauchamp2</dc:creator>
      <dc:date>2022-11-28T16:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to Find and update existing incidents through Integration</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/how-to-find-and-update-existing-incidents-through-integration/m-p/522607#M1463</link>
      <description>&lt;P&gt;You won't be able to do the update during the fetch Incidents call, it simply doesn't work that way.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd do a preprocessing rule, if you need to update the existing one, you can run those 2 commands you mentioned as part of a preprocessing script which is another option on a preprocessing rule.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 16:09:38 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/how-to-find-and-update-existing-incidents-through-integration/m-p/522607#M1463</guid>
      <dc:creator>MBeauchamp2</dc:creator>
      <dc:date>2022-11-28T16:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to Find and update existing incidents through Integration</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/how-to-find-and-update-existing-incidents-through-integration/m-p/522698#M1470</link>
      <description>&lt;P&gt;Thanks for you reply.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not able to open the video. It says Access Denied. Is there some other video or other location than what is mentioned above?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 06:10:57 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/how-to-find-and-update-existing-incidents-through-integration/m-p/522698#M1470</guid>
      <dc:creator>sudhesub</dc:creator>
      <dc:date>2022-11-29T06:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to Find and update existing incidents through Integration</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/how-to-find-and-update-existing-incidents-through-integration/m-p/543829#M2187</link>
      <description>&lt;P&gt;Mirroring&lt;/P&gt;
&lt;P&gt;&lt;A href="https://xsoar.pan.dev/docs/integrations/mirroring_integration" target="_blank"&gt;https://xsoar.pan.dev/docs/integrations/mirroring_integration&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 15:08:50 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/how-to-find-and-update-existing-incidents-through-integration/m-p/543829#M2187</guid>
      <dc:creator>ekatsenelson</dc:creator>
      <dc:date>2023-05-29T15:08:50Z</dc:date>
    </item>
  </channel>
</rss>

