<?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: How to pass data from one playbook to its subplaybook in Splunk SOAR</title>
    <link>https://community.splunk.com/t5/Splunk-SOAR/How-to-pass-data-from-one-playbook-to-its-subplaybook/m-p/453636#M154</link>
    <description>&lt;P&gt;Phantom playbooks. It is recommended to use a Module Design (Parent &amp;amp; Children) when creating SOAR use cases with Phantom.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://my.phantom.us/4.5/docs/vpe/editor#playbook"&gt;https://my.phantom.us/4.5/docs/vpe/editor#playbook&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://my.phantom.us/4.5/docs/automation/api_playbook#playbook"&gt;https://my.phantom.us/4.5/docs/automation/api_playbook#playbook&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;My answer will be posted here shortly.&lt;/P&gt;</description>
    <pubDate>Wed, 28 Aug 2019 17:44:03 GMT</pubDate>
    <dc:creator>cblumer_splunk</dc:creator>
    <dc:date>2019-08-28T17:44:03Z</dc:date>
    <item>
      <title>How to pass data from one playbook to its subplaybook</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/How-to-pass-data-from-one-playbook-to-its-subplaybook/m-p/453633#M151</link>
      <description>&lt;P&gt;How can we pass data from one playbook to its sub playbook?&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jun 2020 17:38:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/How-to-pass-data-from-one-playbook-to-its-subplaybook/m-p/453633#M151</guid>
      <dc:creator>ansusabu</dc:creator>
      <dc:date>2020-06-07T17:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass data from one playbook to its subplaybook</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/How-to-pass-data-from-one-playbook-to-its-subplaybook/m-p/453634#M152</link>
      <description>&lt;P&gt;There are two good methods for passing data between playbooks in Phantom, and many other ways to use external databases /services/or APIs to pass data between playbooks and containers. These are the built-in methods:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Phantom App - 'Add Artifact' action&lt;/STRONG&gt;&lt;BR /&gt;
&lt;A href="https://my.phantom.us/4.5/docs/app_reference/phantom_phantom#add-artifact" target="_blank"&gt;https://my.phantom.us/4.5/docs/app_reference/phantom_phantom#add-artifact&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://my.phantom.us/4.5/docs/automation/api_container#add_artifact" target="_blank"&gt;https://my.phantom.us/4.5/docs/automation/api_container#add_artifact&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;This method can be used to store (JSON formatted) data within a newly created Artifact either in the Container the playbook is being executed on at the time, or any Container across the local system as long as the ID is known. You can also create a new Container on any other connected Phantom instance as well, as long as the required App Asset is created and configured with the connection details on the local instance. Best used for data that should be stored long-term.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;phantom.save_object()&lt;/STRONG&gt;&lt;BR /&gt;
&lt;A href="https://my.phantom.us/4.5/docs/automation/api_data_management#save_object" target="_blank"&gt;https://my.phantom.us/4.5/docs/automation/api_data_management#save_object&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;"This API allows you to save data by key and/or container_id and/or playbook name, to be retrieved when executing playbooks on containers. Users can save a key and value pair along with the context of container id and/or playbook name."&lt;/P&gt;

&lt;P&gt;Best used for data which can be deleted when the given container is closed using the 'clear_object' field:&lt;/P&gt;

&lt;P&gt;"[optional] Defaults to False. If set True, the data will be deleted when the container is closed. The clear_object can be used to delete the data. If set True, container_id must be provided."&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:54:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/How-to-pass-data-from-one-playbook-to-its-subplaybook/m-p/453634#M152</guid>
      <dc:creator>cblumer_splunk</dc:creator>
      <dc:date>2020-09-30T01:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass data from one playbook to its subplaybook</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/How-to-pass-data-from-one-playbook-to-its-subplaybook/m-p/453635#M153</link>
      <description>&lt;P&gt;what do you mean playbook and subplaybook? is this regarding ansible?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 17:37:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/How-to-pass-data-from-one-playbook-to-its-subplaybook/m-p/453635#M153</guid>
      <dc:creator>diogofgm</dc:creator>
      <dc:date>2019-08-28T17:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass data from one playbook to its subplaybook</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/How-to-pass-data-from-one-playbook-to-its-subplaybook/m-p/453636#M154</link>
      <description>&lt;P&gt;Phantom playbooks. It is recommended to use a Module Design (Parent &amp;amp; Children) when creating SOAR use cases with Phantom.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://my.phantom.us/4.5/docs/vpe/editor#playbook"&gt;https://my.phantom.us/4.5/docs/vpe/editor#playbook&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://my.phantom.us/4.5/docs/automation/api_playbook#playbook"&gt;https://my.phantom.us/4.5/docs/automation/api_playbook#playbook&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;My answer will be posted here shortly.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 17:44:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/How-to-pass-data-from-one-playbook-to-its-subplaybook/m-p/453636#M154</guid>
      <dc:creator>cblumer_splunk</dc:creator>
      <dc:date>2019-08-28T17:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass data from one playbook to its subplaybook</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/How-to-pass-data-from-one-playbook-to-its-subplaybook/m-p/453637#M155</link>
      <description>&lt;P&gt;sorry. its was not tagged as phantom xP&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 18:00:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/How-to-pass-data-from-one-playbook-to-its-subplaybook/m-p/453637#M155</guid>
      <dc:creator>diogofgm</dc:creator>
      <dc:date>2019-08-28T18:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass data from one playbook to its subplaybook</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/How-to-pass-data-from-one-playbook-to-its-subplaybook/m-p/453638#M156</link>
      <description>&lt;P&gt;Other available methods:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;phantom.get_action_results()&lt;/STRONG&gt;&lt;BR /&gt;
&lt;A href="https://my.phantom.us/4.5/docs/automation/api_data_access#get_action_results" target="_blank"&gt;https://my.phantom.us/4.5/docs/automation/api_data_access#get_action_results&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;phantom.add_note() &amp;amp; phantom.get_notes()&lt;/STRONG&gt;&lt;BR /&gt;
&lt;A href="https://my.phantom.us/4.5/docs/automation/api_container#add_note" target="_blank"&gt;https://my.phantom.us/4.5/docs/automation/api_container#add_note&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://my.phantom.us/4.5/docs/automation/api_container#get_notes" target="_blank"&gt;https://my.phantom.us/4.5/docs/automation/api_container#get_notes&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;HTTP App for Phantom - 'get data' action - '/rest/action_run' endpoint&lt;/STRONG&gt;&lt;BR /&gt;
&lt;A href="https://my.phantom.us/4.5/docs/app_reference/phantom_http#get-data" target="_blank"&gt;https://my.phantom.us/4.5/docs/app_reference/phantom_http#get-data&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://my.phantom.us/4.5/docs/rest/query" target="_blank"&gt;https://my.phantom.us/4.5/docs/rest/query&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:07:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/How-to-pass-data-from-one-playbook-to-its-subplaybook/m-p/453638#M156</guid>
      <dc:creator>cblumer_splunk</dc:creator>
      <dc:date>2020-09-30T02:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass data from one playbook to its subplaybook</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/How-to-pass-data-from-one-playbook-to-its-subplaybook/m-p/546113#M608</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I have implemented the artifact creation way of sharing data with multiple playbooks on the same container. It works perfect when run in debug mode both with scope new and all. But when the playbook is made active, the actions on the playbook can't read&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;those artifacts as the default scope when a playbook is set to active is 'new'. Please help how can we set the scope global for entire playbook when in active mode.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BR,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Ankit&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 04:12:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/How-to-pass-data-from-one-playbook-to-its-subplaybook/m-p/546113#M608</guid>
      <dc:creator>ankitsync</dc:creator>
      <dc:date>2021-03-31T04:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass data from one playbook to its subplaybook</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/How-to-pass-data-from-one-playbook-to-its-subplaybook/m-p/546167#M609</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/165783"&gt;@ankitsync&lt;/a&gt;&amp;nbsp;the only way to change the scope of a&amp;nbsp;&lt;STRONG&gt;playbook&lt;/STRONG&gt; is to run it using REST as you can set the scope in the call:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Phantom/4.9/PlatformAPI/RESTPlaybook" target="_blank"&gt;https://docs.splunk.com/Documentation/Phantom/4.9/PlatformAPI/RESTPlaybook&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is also the option of setting the scope of the point of collection (collect2, etc) in the other playbook by adding &lt;STRONG&gt;scope='all'&lt;/STRONG&gt; to the relevant call. Check the docs for which ones have the capability. A few are collect2, format, condition, decision, and many more.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Phantom/4.9/PlaybookAPI/DataAccessAPI#collect2" target="_blank"&gt;https://docs.splunk.com/Documentation/Phantom/4.9/PlaybookAPI/DataAccessAPI#collect2&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: By changing the scope setting in a default API call it will change the block to a 'custom' block, so be aware of that when/if using this method.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 08:09:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/How-to-pass-data-from-one-playbook-to-its-subplaybook/m-p/546167#M609</guid>
      <dc:creator>phanTom</dc:creator>
      <dc:date>2021-03-31T08:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass data from one playbook to its subplaybook</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/How-to-pass-data-from-one-playbook-to-its-subplaybook/m-p/546169#M610</link>
      <description>&lt;P&gt;Hi , Thanks for sharing I did research about both these methods.&amp;nbsp; While the custom a parameter addition to blocks is something i have kept in mind as a last resort. Is there a way to make that rest call from another playbook ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 08:19:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/How-to-pass-data-from-one-playbook-to-its-subplaybook/m-p/546169#M610</guid>
      <dc:creator>ankitsync</dc:creator>
      <dc:date>2021-03-31T08:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass data from one playbook to its subplaybook</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/How-to-pass-data-from-one-playbook-to-its-subplaybook/m-p/546172#M611</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/165783"&gt;@ankitsync&lt;/a&gt;&amp;nbsp;you can either:&lt;BR /&gt;&lt;BR /&gt;1. Use the phantom APIs phantom.build_phantom_rest_url() &amp;amp; phantom.requests() to run RESTS calls in Phantom playbooks. You can use in either of the custom function types.&lt;BR /&gt;&lt;A href="https://docs.splunk.com/Documentation/Phantom/4.10/PlaybookAPI/SessionAPI" target="_blank"&gt;https://docs.splunk.com/Documentation/Phantom/4.10/PlaybookAPI/SessionAPI&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;2. You can use the HTTP app in playbooks to speak with Phantom REST. This is sometimes better as there is no custom code required but can require a few format blocks to make the url &amp;amp; any payload for POST actions and needs an asset configured for the App.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;A href="https://my.phantom.us/4.10/docs/app_reference/phantom_http" target="_blank"&gt;https://my.phantom.us/4.10/docs/app_reference/phantom_http&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 08:27:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/How-to-pass-data-from-one-playbook-to-its-subplaybook/m-p/546172#M611</guid>
      <dc:creator>phanTom</dc:creator>
      <dc:date>2021-03-31T08:27:18Z</dc:date>
    </item>
  </channel>
</rss>

