<?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: running polling commands from automations in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/running-polling-commands-from-automations/m-p/540741#M2080</link>
    <description>&lt;P&gt;opsgenie-get-request schedules command execution when it receives error response from the server. Only in this case it sends a scheduled command and here I am having the error. If the command cannot pull the alert in its initial fetch, the automation fails with&lt;/P&gt;
&lt;PRE class="c-mrkdwn__pre" style="box-sizing: inherit; margin: 4px 0px; padding: 8px; --saf-0: rgba(var(--sk_foreground_low,29,28,29),0.13); overflow-wrap: break-word; font-size: 12px; font-variant-ligatures: none; line-height: 1.50001; tab-size: 4; white-space: pre-wrap; word-break: normal; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace !important; background: rgba(var(--sk_foreground_min,29,28,29),0.04); border: 1px solid var(--saf-0); border-radius: 4px; overflow-y: hidden; counter-reset: list-0 0 list-1 0 list-2 0 list-3 0 list-4 0 list-5 0 list-6 0 list-7 0 list-8 0 list-9 0; color: #1d1c1d; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-stringify-type="pre"&gt;error command opsgenie-get-request was not found in module [error 'Item not found (8)'] &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 May 2023 07:57:26 GMT</pubDate>
    <dc:creator>EnesOzdemir</dc:creator>
    <dc:date>2023-05-02T07:57:26Z</dc:date>
    <item>
      <title>running polling commands from automations</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/running-polling-commands-from-automations/m-p/540206#M2050</link>
      <description>&lt;P&gt;opsgenie-get-request is a polling command but when it is being run from an automation it results in an error. From CLI or through playbook tasks, the output returns to the war room once it finishes. That's doesn't seem to be the case in automations. Item not found (8) error is thrown with polling commands (polling: True on .yml file). Looking closely at the logs I came across the following&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="c-mrkdwn__pre" style="box-sizing: inherit; margin: 4px 0px; padding: 8px; --saf-0: rgba(var(--sk_foreground_low,29,28,29),0.13); overflow-wrap: break-word; font-size: 12px; font-variant-ligatures: none; line-height: 1.50001; tab-size: 4; white-space: pre-wrap; word-break: normal; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace !important; background: rgba(var(--sk_foreground_min,29,28,29),0.04); border: 1px solid var(--saf-0); border-radius: 4px; overflow-y: hidden; counter-reset: list-0 0 list-1 0 list-2 0 list-3 0 list-4 0 list-5 0 list-6 0 list-7 0 list-8 0 list-9 0; color: #1d1c1d; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-stringify-type="pre"&gt;2023-04-25 13:04:32.2233 error command opsgenie-get-request was not found in module [error 'Item not found (8)'] (source: /builds/GOPATH/src/gitlab.xdr.pan.local/xdr/xsoar/server/services/investigation.go:1664)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this a bug? How can I run this command in an automation safely without having to create another task?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 14:16:01 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/running-polling-commands-from-automations/m-p/540206#M2050</guid>
      <dc:creator>EnesOzdemir</dc:creator>
      <dc:date>2023-04-26T14:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: running polling commands from automations</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/running-polling-commands-from-automations/m-p/540523#M2072</link>
      <description>&lt;P&gt;As long as polling: true is in the YML it should work. You would receive a different error saying that the automation doesn't support polling if that was the issue. I tested using the opsgenie-get-request command in a custom automation and was able to successfully retrieve the request. I was able to duplicate the behavior though by putting in an invalid request ID. If the request ID was invalid, I would get the Item not found (8) error but as soon as I used a valid request ID it would work. I would also double check and confirm that you are on the latest integration version. The latest version of the content pack is&amp;nbsp;&lt;SPAN&gt;2.0.13 4771215 and the version of the integration is v3. Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 23:03:55 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/running-polling-commands-from-automations/m-p/540523#M2072</guid>
      <dc:creator>amontminy</dc:creator>
      <dc:date>2023-04-28T23:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: running polling commands from automations</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/running-polling-commands-from-automations/m-p/540727#M2079</link>
      <description>&lt;P&gt;Item not found error is not sent from the integration. The error you received is the same which is mentioned in my post.&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 06:24:13 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/running-polling-commands-from-automations/m-p/540727#M2079</guid>
      <dc:creator>EnesOzdemir</dc:creator>
      <dc:date>2023-05-02T06:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: running polling commands from automations</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/running-polling-commands-from-automations/m-p/540741#M2080</link>
      <description>&lt;P&gt;opsgenie-get-request schedules command execution when it receives error response from the server. Only in this case it sends a scheduled command and here I am having the error. If the command cannot pull the alert in its initial fetch, the automation fails with&lt;/P&gt;
&lt;PRE class="c-mrkdwn__pre" style="box-sizing: inherit; margin: 4px 0px; padding: 8px; --saf-0: rgba(var(--sk_foreground_low,29,28,29),0.13); overflow-wrap: break-word; font-size: 12px; font-variant-ligatures: none; line-height: 1.50001; tab-size: 4; white-space: pre-wrap; word-break: normal; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace !important; background: rgba(var(--sk_foreground_min,29,28,29),0.04); border: 1px solid var(--saf-0); border-radius: 4px; overflow-y: hidden; counter-reset: list-0 0 list-1 0 list-2 0 list-3 0 list-4 0 list-5 0 list-6 0 list-7 0 list-8 0 list-9 0; color: #1d1c1d; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-stringify-type="pre"&gt;error command opsgenie-get-request was not found in module [error 'Item not found (8)'] &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 07:57:26 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/running-polling-commands-from-automations/m-p/540741#M2080</guid>
      <dc:creator>EnesOzdemir</dc:creator>
      <dc:date>2023-05-02T07:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: running polling commands from automations</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/running-polling-commands-from-automations/m-p/541180#M2095</link>
      <description>&lt;P&gt;I resolved the issue by polling my own automation when received a polling result from a command. I believe this is the intended behavior.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://xsoar.pan.dev/docs/integrations/scheduled-commands#how-to-use-with-demistoexecutecommand" target="_blank"&gt;https://xsoar.pan.dev/docs/integrations/scheduled-commands#how-to-use-with-demistoexecutecommand&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 08:38:10 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/running-polling-commands-from-automations/m-p/541180#M2095</guid>
      <dc:creator>EnesOzdemir</dc:creator>
      <dc:date>2023-05-05T08:38:10Z</dc:date>
    </item>
  </channel>
</rss>

