<?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 In Splunk Synthetic, how do you reference a custom variable in your down stream javaScript step in Splunk Cloud Platform</title>
    <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/In-Splunk-Synthetic-how-do-you-reference-a-custom-variable-in/m-p/689553#M3083</link>
    <description>&lt;P&gt;In the Splunk Synthetic doc, it mentioned, you need to use the following syntax to reference the custom variable you defined in earlier on steps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;{{custom.$variable}}&lt;/P&gt;&lt;P&gt;However, when I tried, it seems that syntax only works when you try to reference it in the "Fill in Field" sort of steps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I have a downstream javaScript step, and in that javaScript,&amp;nbsp; I want to reference the custom variable I defined in my earlier on steps,&amp;nbsp; how do I reference them?&lt;/P&gt;&lt;P&gt;I tried the&amp;nbsp; {{custom.$variable}} syntax, they do NOT work in my javaScript&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jun 2024 14:15:17 GMT</pubDate>
    <dc:creator>Jerry07</dc:creator>
    <dc:date>2024-06-04T14:15:17Z</dc:date>
    <item>
      <title>In Splunk Synthetic, how do you reference a custom variable in your down stream javaScript step</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/In-Splunk-Synthetic-how-do-you-reference-a-custom-variable-in/m-p/689553#M3083</link>
      <description>&lt;P&gt;In the Splunk Synthetic doc, it mentioned, you need to use the following syntax to reference the custom variable you defined in earlier on steps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;{{custom.$variable}}&lt;/P&gt;&lt;P&gt;However, when I tried, it seems that syntax only works when you try to reference it in the "Fill in Field" sort of steps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I have a downstream javaScript step, and in that javaScript,&amp;nbsp; I want to reference the custom variable I defined in my earlier on steps,&amp;nbsp; how do I reference them?&lt;/P&gt;&lt;P&gt;I tried the&amp;nbsp; {{custom.$variable}} syntax, they do NOT work in my javaScript&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2024 14:15:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/In-Splunk-Synthetic-how-do-you-reference-a-custom-variable-in/m-p/689553#M3083</guid>
      <dc:creator>Jerry07</dc:creator>
      <dc:date>2024-06-04T14:15:17Z</dc:date>
    </item>
  </channel>
</rss>

