<?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 Passing Variables Between Functions in Splunk SOAR</title>
    <link>https://community.splunk.com/t5/Splunk-SOAR/Passing-Variables-Between-Functions/m-p/560621#M673</link>
    <description>&lt;P&gt;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:&lt;/P&gt;&lt;P&gt;"local variable 'json' referenced before assignment"&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;get_user_session__ip_list_testing = json.loads(phantom.get_run_data(key='get_user_session:ip_list_testing'))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas how I can accomplish what I'm after?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Jul 2021 14:51:23 GMT</pubDate>
    <dc:creator>Mr</dc:creator>
    <dc:date>2021-07-23T14:51:23Z</dc:date>
    <item>
      <title>Passing Variables Between Functions</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/Passing-Variables-Between-Functions/m-p/560621#M673</link>
      <description>&lt;P&gt;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:&lt;/P&gt;&lt;P&gt;"local variable 'json' referenced before assignment"&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;get_user_session__ip_list_testing = json.loads(phantom.get_run_data(key='get_user_session:ip_list_testing'))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas how I can accomplish what I'm after?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 14:51:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/Passing-Variables-Between-Functions/m-p/560621#M673</guid>
      <dc:creator>Mr</dc:creator>
      <dc:date>2021-07-23T14:51:23Z</dc:date>
    </item>
  </channel>
</rss>

