Splunk SOAR (f.k.a. Phantom)

Passing Variables Between Functions

Mr
Loves-to-Learn Lots

I'm attempting to pass a variable/value between custom functions in a playbook. I've done this before without issue, but in this scenario I'm running into the following error:

"local variable 'json' referenced before assignment"

I'm attempting to pass an HTML string. But it's erroring on a line in the function I'm trying to pass it to, that's locked out/not editable.

get_user_session__ip_list_testing = json.loads(phantom.get_run_data(key='get_user_session:ip_list_testing'))

 

Any ideas how I can accomplish what I'm after?

 

Thanks in advance

 

0 Karma
Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...