<?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 Dynatrace Synthetic pre-post scripting in Synthetic Monitoring</title>
    <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Dynatrace-Synthetic-pre-post-scripting/m-p/120668#M441</link>
    <description>&lt;P&gt;Hi all.&lt;/P&gt;
&lt;P&gt;I need to create a Dynatrace Synthetic monitor to perform two requests, a POST and then a GET.&lt;BR /&gt;Inside the POST "requestBody" I need to pass an INT value, maybe using the api.randomNextInt().&lt;BR /&gt;Then the GET request need to use the same INT value generated to validate the response, to pass if present, into validation - rules - value field.&lt;BR /&gt;Is this possible? To use the variables into the POST requestbody, and on GET validation?&lt;BR /&gt;Can someone help me to set up this script properly?&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Apr 2021 12:25:43 GMT</pubDate>
    <dc:creator>dannemca</dc:creator>
    <dc:date>2021-04-13T12:25:43Z</dc:date>
    <item>
      <title>Dynatrace Synthetic pre-post scripting</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Dynatrace-Synthetic-pre-post-scripting/m-p/120668#M441</link>
      <description>&lt;P&gt;Hi all.&lt;/P&gt;
&lt;P&gt;I need to create a Dynatrace Synthetic monitor to perform two requests, a POST and then a GET.&lt;BR /&gt;Inside the POST "requestBody" I need to pass an INT value, maybe using the api.randomNextInt().&lt;BR /&gt;Then the GET request need to use the same INT value generated to validate the response, to pass if present, into validation - rules - value field.&lt;BR /&gt;Is this possible? To use the variables into the POST requestbody, and on GET validation?&lt;BR /&gt;Can someone help me to set up this script properly?&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 12:25:43 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Dynatrace-Synthetic-pre-post-scripting/m-p/120668#M441</guid>
      <dc:creator>dannemca</dc:creator>
      <dc:date>2021-04-13T12:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dynatrace Synthetic pre-post scripting</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Dynatrace-Synthetic-pre-post-scripting/m-p/120669#M442</link>
      <description>&lt;P&gt;Here you have some info about passing variables. When you set one on request 1, you should be able to use it in request 2:&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://www.dynatrace.com/support/help/shortlink/http-monitor-pre-post-script#passing-variables" target="_blank"&gt;https://www.dynatrace.com/support/help/shortlink/http-monitor-pre-post-script#passing-variables&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Sebastian &lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 08:43:12 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Dynatrace-Synthetic-pre-post-scripting/m-p/120669#M442</guid>
      <dc:creator>skrystosik</dc:creator>
      <dc:date>2021-01-21T08:43:12Z</dc:date>
    </item>
  </channel>
</rss>

