<?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: Problem with setIncident command in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/problem-with-setincident-command/m-p/526425#M1604</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/258007"&gt;@sudhesub&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I think we might need more information before we can offer a solution. Maybe just add the automation to the question?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't see any issue with your execute_command call.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jan 2023 01:51:12 GMT</pubDate>
    <dc:creator>jfernandes1</dc:creator>
    <dc:date>2023-01-10T01:51:12Z</dc:date>
    <item>
      <title>Problem with setIncident command</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/problem-with-setincident-command/m-p/525895#M1598</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am working on a new automation which gets triggered dynamically from layout where in I need to check a custom attribute has changed in my remote machine, then update it on the xsoar incident. The custom attribute is a list/array. This is what I am doing in the automation...&lt;/SPAN&gt;&lt;SPAN&gt;if len(oldAnomalies) != len(jsonResponse):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;# Update the new anomalies on this incident&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;# demisto.executeCommand("setIncident", {"id": incident['id'], "gracaseanomalydetails": []})&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;execute_command("setIncident", {"id": incident['id'], "gracaseanomalydetails": jsonResponse})&lt;/SPAN&gt;&lt;SPAN&gt;When I ran for first time, oldAnomalies count were say 10 in number and jsonResponse had 8 entries. The problem is that executeCommand is updating the incident but when I refresh, it still says that oldAnomalies count is 10 while new is 8. If I change jsonResponse to have 4, it would update the xsoar incident but upon refresh, it would still say oldAnomalies count as 10. I have tried with both demisto.executeCommant and enecute_command.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Am I missing something in this? Is there a way we can commit after setIncident is called?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 13:32:18 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/problem-with-setincident-command/m-p/525895#M1598</guid>
      <dc:creator>sudhesub</dc:creator>
      <dc:date>2023-01-04T13:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with setIncident command</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/problem-with-setincident-command/m-p/526425#M1604</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/258007"&gt;@sudhesub&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I think we might need more information before we can offer a solution. Maybe just add the automation to the question?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't see any issue with your execute_command call.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 01:51:12 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/problem-with-setincident-command/m-p/526425#M1604</guid>
      <dc:creator>jfernandes1</dc:creator>
      <dc:date>2023-01-10T01:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with setIncident command</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/problem-with-setincident-command/m-p/526453#M1605</link>
      <description>&lt;P&gt;I had asked this question on slack and it is resolved now. Thanks your your time.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 05:49:19 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/problem-with-setincident-command/m-p/526453#M1605</guid>
      <dc:creator>sudhesub</dc:creator>
      <dc:date>2023-01-10T05:49:19Z</dc:date>
    </item>
  </channel>
</rss>

