<?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: Display flags in long XSOAR automation in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/display-flags-in-long-xsoar-automation/m-p/527723#M1658</link>
    <description>&lt;P&gt;You can see all the different API endpoints in Settings &amp;gt; Integrations &amp;gt; API Keys &amp;gt; View Cortex XSOAR API. /entry is the endpoint that creates a war room entry and the body of that API request just requires the investigation ID and whatever you want to post to the war room.&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jan 2023 16:18:20 GMT</pubDate>
    <dc:creator>amontminy</dc:creator>
    <dc:date>2023-01-19T16:18:20Z</dc:date>
    <item>
      <title>Display flags in long XSOAR automation</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/display-flags-in-long-xsoar-automation/m-p/526840#M1624</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;A long automation with no time limit is created. However, when we execute it, there's no way to know if it's executing properly.&lt;/P&gt;
&lt;P&gt;We've tried: "demisto.results" and putting information in the context but it only appears when it's completely executed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can we display flags to know the progress of an automation?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 20:34:10 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/display-flags-in-long-xsoar-automation/m-p/526840#M1624</guid>
      <dc:creator>SanDev</dc:creator>
      <dc:date>2023-01-12T20:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Display flags in long XSOAR automation</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/display-flags-in-long-xsoar-automation/m-p/527470#M1639</link>
      <description>&lt;P&gt;Hi SanDev, all output is queued to display after the automation finishes which is why demisto.results doesn't work. The only way around this would be to use the Demisto API to call the Print command to print to the war room. Here is what I did to test this functionality:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;import time

i = 1
id = demisto.incident().get("id")

while i &amp;lt; 3:
    body = {
	    "investigationId": id,
	    "data": f"!Print value=`I have looped {i} times.`"
    }
    
    demisto.executeCommand("demisto-api-post", {"uri":"/entry", "body": body})
    time.sleep(1)
    i += 1
    
return_results("All Done")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 22:03:15 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/display-flags-in-long-xsoar-automation/m-p/527470#M1639</guid>
      <dc:creator>amontminy</dc:creator>
      <dc:date>2023-01-17T22:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Display flags in long XSOAR automation</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/display-flags-in-long-xsoar-automation/m-p/527471#M1640</link>
      <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;
&lt;P&gt;I'll try to use "demisto-api-post". I'll tell you if it works.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 22:17:31 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/display-flags-in-long-xsoar-automation/m-p/527471#M1640</guid>
      <dc:creator>SanDev</dc:creator>
      <dc:date>2023-01-17T22:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Display flags in long XSOAR automation</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/display-flags-in-long-xsoar-automation/m-p/527710#M1656</link>
      <description>&lt;P&gt;It worked perfectly. However, I don't know where to find the posible values of "URI".&amp;nbsp; "/entry" I supose that it's in the War Room.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 13:58:37 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/display-flags-in-long-xsoar-automation/m-p/527710#M1656</guid>
      <dc:creator>SanDev</dc:creator>
      <dc:date>2023-01-19T13:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Display flags in long XSOAR automation</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/display-flags-in-long-xsoar-automation/m-p/527723#M1658</link>
      <description>&lt;P&gt;You can see all the different API endpoints in Settings &amp;gt; Integrations &amp;gt; API Keys &amp;gt; View Cortex XSOAR API. /entry is the endpoint that creates a war room entry and the body of that API request just requires the investigation ID and whatever you want to post to the war room.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 16:18:20 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/display-flags-in-long-xsoar-automation/m-p/527723#M1658</guid>
      <dc:creator>amontminy</dc:creator>
      <dc:date>2023-01-19T16:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Display flags in long XSOAR automation</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/display-flags-in-long-xsoar-automation/m-p/527773#M1663</link>
      <description>&lt;P&gt;Let me understand, I just discovered this feature. This is like using XSOAR as an API and with the command, in this case "\entry", you can choose where to execute the command you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The documentation is not easy to understand&lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 20:47:47 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/display-flags-in-long-xsoar-automation/m-p/527773#M1663</guid>
      <dc:creator>SanDev</dc:creator>
      <dc:date>2023-01-19T20:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Display flags in long XSOAR automation</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/display-flags-in-long-xsoar-automation/m-p/527792#M1665</link>
      <description>&lt;P&gt;That's exactly right.&amp;nbsp;&lt;/P&gt;
&lt;PRE class=""&gt;&lt;CODE&gt;demisto.executeCommand("demisto-api-post", {"uri":"/entry", "body": body})&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In this line we are telling XSOAR to execute the command demisto-api-post. That command uses the API to post to the endpoint /entry with a body of text. The /entry endpoint posts an entry to a war room exactly like you would manually from the war room itself.&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 21:43:30 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/display-flags-in-long-xsoar-automation/m-p/527792#M1665</guid>
      <dc:creator>amontminy</dc:creator>
      <dc:date>2023-01-19T21:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Display flags in long XSOAR automation</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/display-flags-in-long-xsoar-automation/m-p/527804#M1666</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I will take another look at the others, because I didn't understand how to use them. The one you told me is crystal clear. Many thanks. &lt;span class="lia-unicode-emoji" title=":red_heart:"&gt;❤️&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 21:58:46 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/display-flags-in-long-xsoar-automation/m-p/527804#M1666</guid>
      <dc:creator>SanDev</dc:creator>
      <dc:date>2023-01-19T21:58:46Z</dc:date>
    </item>
  </channel>
</rss>

