<?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 Script or Playbook in one tenant from another tenant. in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/running-script-or-playbook-in-one-tenant-from-another-tenant/m-p/543332#M2181</link>
    <description>&lt;P&gt;Yes, actually&amp;nbsp;I want to run an automation script in XSOAR via API.&lt;/P&gt;</description>
    <pubDate>Thu, 25 May 2023 13:01:04 GMT</pubDate>
    <dc:creator>YilmazDincer</dc:creator>
    <dc:date>2023-05-25T13:01:04Z</dc:date>
    <item>
      <title>Running Script or Playbook in one tenant from another tenant.</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/running-script-or-playbook-in-one-tenant-from-another-tenant/m-p/543191#M2177</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I have a multi-tenant deployment. I want to run a script or playbook from one tenant to another tenant. How can I do this?&lt;/P&gt;
&lt;P&gt;#XSOAR&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 14:11:51 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/running-script-or-playbook-in-one-tenant-from-another-tenant/m-p/543191#M2177</guid>
      <dc:creator>YilmazDincer</dc:creator>
      <dc:date>2023-05-24T14:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Running Script or Playbook in one tenant from another tenant.</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/running-script-or-playbook-in-one-tenant-from-another-tenant/m-p/543206#M2179</link>
      <description>&lt;P&gt;Hi, what kind of script do you want to run? You can make use of API calls for this purpose.&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 14:57:01 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/running-script-or-playbook-in-one-tenant-from-another-tenant/m-p/543206#M2179</guid>
      <dc:creator>gyldz</dc:creator>
      <dc:date>2023-05-24T14:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Running Script or Playbook in one tenant from another tenant.</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/running-script-or-playbook-in-one-tenant-from-another-tenant/m-p/543332#M2181</link>
      <description>&lt;P&gt;Yes, actually&amp;nbsp;I want to run an automation script in XSOAR via API.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 13:01:04 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/running-script-or-playbook-in-one-tenant-from-another-tenant/m-p/543332#M2181</guid>
      <dc:creator>YilmazDincer</dc:creator>
      <dc:date>2023-05-25T13:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: Running Script or Playbook in one tenant from another tenant.</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/running-script-or-playbook-in-one-tenant-from-another-tenant/m-p/543455#M2182</link>
      <description>&lt;P&gt;You can use different API endpints. Please see the below example, which will retrieve the incidents under the tenant customer1. You can change the query according to your needs.&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;query="account:customer1"
body = {
    "filter":{
        "page":0,"size":200,"query":query,
        "period":{"byFrom":"days","fromValue":7,"byTo":"days"}
    }
    }

incidents = demisto.executeCommand("demisto-api-post", {'uri': f"/incidents/search/", 'body': body})[0]["Contents"]["response"]["data"]
demisto.results(incidents)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 07:16:16 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/running-script-or-playbook-in-one-tenant-from-another-tenant/m-p/543455#M2182</guid>
      <dc:creator>gyldz</dc:creator>
      <dc:date>2023-05-26T07:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Running Script or Playbook in one tenant from another tenant.</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/running-script-or-playbook-in-one-tenant-from-another-tenant/m-p/543927#M2190</link>
      <description>&lt;P&gt;Hi Gyldz,&lt;/P&gt;
&lt;P&gt;Thank for your reply.&lt;BR /&gt;I didn't want to run script on an existing incident. My bad, I didn't specify that.&amp;nbsp;For this, I first created an incident and assigned a default playbook to the incident. This way I can run the script I want.&lt;BR /&gt;demisto-api-post uri = /tenant_name/incident and &lt;BR /&gt;body;&lt;BR /&gt;&lt;A href="https://docs-cortex.paloaltonetworks.com/r/Cortex-XSOAR-API/Create-single-incident" target="_self"&gt;https://docs-cortex.paloaltonetworks.com/r/Cortex-XSOAR-API/Create-single-incident&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 09:23:40 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/running-script-or-playbook-in-one-tenant-from-another-tenant/m-p/543927#M2190</guid>
      <dc:creator>YilmazDincer</dc:creator>
      <dc:date>2023-05-30T09:23:40Z</dc:date>
    </item>
  </channel>
</rss>

