I currently have a playbook that runs 3 actions within it (creating a splunk search, sharing the job, and expanding ttl, all while using the loop-if-failure feature) and returns outputs (summary, status, and the search results). I'm trying to do a for-loop where it calls that playbook with different params using phantom.playbook() though I am having trouble finding the actual playbook output in the callback function. Example: for loop: inputs = {<changing params>} new_name = "<changing string>" phantom.playbook("my_playbook", container=container, name=new_name, input=inputs, callback=my_callback) where in my_callback: I try phantom.collect2(container=container, datapath=["new_name:playbook_output:search_results_data"], action_results=results) which doesnt work. I tried printing out general "results" which gives me info such as: name playbook playbook_run_id result (which contains a dictionary for info on each of the 3 actions) but this doesnt include the output data of the playbook itself (or the run_query splunk search results). I did see a past post that didnt get an answer (or at least not the answer that fits my scenario: https://community.splunk.com/t5/Splunk-SOAR/How-to-get-output-data-when-calling-a-playbook-through-the-API/m-p/698278). My use case needs to use the subplaybook and not the actions directly due to configuration reasons (mainly the asset field needs to be configurable rather than hard-set via the Splunk App runquery action block). any help or direction would be super appreciated!
... View more