<?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: Invoke a automation method from other automation in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/invoke-a-automation-method-from-other-automation/m-p/525646#M1587</link>
    <description>&lt;P&gt;&lt;SPAN&gt;executeCommand can also be used to call (custom) automations, so if you can make that method as an automation itself it would solve it.&lt;BR /&gt;Another option is to add the method to the&amp;nbsp;CommonServerUserPython automation, which is essentially a python file that gets copied into each automation upon runtime and can thus be called from all python automations.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Beware that this last option needs the method to be py2 and py3 compatible to include it in all python automation, this is the reason we mainly use option 1 as it also allows us to run code cross language, like javascript executing python or even powershell methods (automations).&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Jan 2023 08:19:54 GMT</pubDate>
    <dc:creator>Joachimb</dc:creator>
    <dc:date>2023-01-03T08:19:54Z</dc:date>
    <item>
      <title>Invoke a automation method from other automation</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/invoke-a-automation-method-from-other-automation/m-p/525596#M1582</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone help me to call a method of one automation from a other automation script. Can't copy past the code into other, because the code requires different docker image to run.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jan 2023 12:34:55 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/invoke-a-automation-method-from-other-automation/m-p/525596#M1582</guid>
      <dc:creator>DP696</dc:creator>
      <dc:date>2023-01-02T12:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Invoke a automation method from other automation</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/invoke-a-automation-method-from-other-automation/m-p/525606#M1584</link>
      <description>&lt;P&gt;Javascript&amp;amp;colon; executeCommand("[command_name]", [params_in_json])&lt;/P&gt;
&lt;P&gt;Python:&amp;nbsp;demisto.executeCommand("[command_name]", [params_in_json])&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jan 2023 15:14:12 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/invoke-a-automation-method-from-other-automation/m-p/525606#M1584</guid>
      <dc:creator>Joachimb</dc:creator>
      <dc:date>2023-01-02T15:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Invoke a automation method from other automation</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/invoke-a-automation-method-from-other-automation/m-p/525645#M1586</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/176719"&gt;@Joachimb&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your reply. I would like to call a method from a custom automation script into another custom automation script. could you suggest the way to do that. I believe demisto.executeCommand is used to call built-in commands.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 07:50:37 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/invoke-a-automation-method-from-other-automation/m-p/525645#M1586</guid>
      <dc:creator>DP696</dc:creator>
      <dc:date>2023-01-03T07:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Invoke a automation method from other automation</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/invoke-a-automation-method-from-other-automation/m-p/525646#M1587</link>
      <description>&lt;P&gt;&lt;SPAN&gt;executeCommand can also be used to call (custom) automations, so if you can make that method as an automation itself it would solve it.&lt;BR /&gt;Another option is to add the method to the&amp;nbsp;CommonServerUserPython automation, which is essentially a python file that gets copied into each automation upon runtime and can thus be called from all python automations.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Beware that this last option needs the method to be py2 and py3 compatible to include it in all python automation, this is the reason we mainly use option 1 as it also allows us to run code cross language, like javascript executing python or even powershell methods (automations).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 08:19:54 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/invoke-a-automation-method-from-other-automation/m-p/525646#M1587</guid>
      <dc:creator>Joachimb</dc:creator>
      <dc:date>2023-01-03T08:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Invoke a automation method from other automation</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/invoke-a-automation-method-from-other-automation/m-p/525674#M1589</link>
      <description>&lt;P&gt;Thanks a lot! its worked&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 11:28:56 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/invoke-a-automation-method-from-other-automation/m-p/525674#M1589</guid>
      <dc:creator>DP696</dc:creator>
      <dc:date>2023-01-03T11:28:56Z</dc:date>
    </item>
  </channel>
</rss>

