<?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 Re: Dynamic text input on synthetic monitor in Synthetic Monitoring</title>
    <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Dynamic-text-input-on-synthetic-monitor/m-p/215675#M1931</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would say yes if you that file is reachable. It means, if you can make a JavaScript code to reach content in that file, and paste it in that field.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
    <pubDate>Wed, 21 Jun 2023 14:58:00 GMT</pubDate>
    <dc:creator>AntonPineiro</dc:creator>
    <dc:date>2023-06-21T14:58:00Z</dc:date>
    <item>
      <title>Dynamic text input on synthetic monitor</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Dynamic-text-input-on-synthetic-monitor/m-p/215643#M1930</link>
      <description>&lt;P class=""&gt;&lt;SPAN class=""&gt;hello, can we do something like this? In the clickpath section of the synthetic browser Can we dynamically query the PNR number when doing online check-in? For example, we want to take the PNR numbers from file and add them to the field as in the figure.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mustafa_ERZURUM_0-1687349846415.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/12380i02627508C6BF7469/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mustafa_ERZURUM_0-1687349846415.png" alt="Mustafa_ERZURUM_0-1687349846415.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;I hope I was able to explain. Can I pull the data from a file in the Clickpath section and do this with a script? Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 12:20:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Dynamic-text-input-on-synthetic-monitor/m-p/215643#M1930</guid>
      <dc:creator>Osiris5654</dc:creator>
      <dc:date>2023-06-21T12:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic text input on synthetic monitor</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Dynamic-text-input-on-synthetic-monitor/m-p/215675#M1931</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would say yes if you that file is reachable. It means, if you can make a JavaScript code to reach content in that file, and paste it in that field.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 14:58:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Dynamic-text-input-on-synthetic-monitor/m-p/215675#M1931</guid>
      <dc:creator>AntonPineiro</dc:creator>
      <dc:date>2023-06-21T14:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic text input on synthetic monitor</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Dynamic-text-input-on-synthetic-monitor/m-p/215680#M1932</link>
      <description>&lt;P&gt;How is the file getting updated? Is it another monitor that is creating the booking reference and this one does something with it? If that's the case, you might be better using the Credential Vault. So the first monitor could create the PNR and use the &lt;A href="https://www.dynatrace.com/support/help/dynatrace-api/environment-api/credential-vault/put-credentials" target="_self"&gt;Credential Vault API&lt;/A&gt;&amp;nbsp;to update an existing credential, and then the 2nd monitor can just reference it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 15:04:53 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Dynamic-text-input-on-synthetic-monitor/m-p/215680#M1932</guid>
      <dc:creator>HannahM</dc:creator>
      <dc:date>2023-06-21T15:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic text input on synthetic monitor</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Dynamic-text-input-on-synthetic-monitor/m-p/215806#M1935</link>
      <description>&lt;P&gt;Do you have an example?&lt;BR /&gt;Regards,&lt;BR /&gt;Mustafa.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 13:11:08 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Dynamic-text-input-on-synthetic-monitor/m-p/215806#M1935</guid>
      <dc:creator>Osiris5654</dc:creator>
      <dc:date>2023-06-22T13:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic text input on synthetic monitor</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Dynamic-text-input-on-synthetic-monitor/m-p/215809#M1936</link>
      <description>&lt;P&gt;Do you have a sample of the Java Script code I can test?&lt;BR /&gt;Regards,&lt;BR /&gt;Mustafa.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 13:12:14 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Dynamic-text-input-on-synthetic-monitor/m-p/215809#M1936</guid>
      <dc:creator>Osiris5654</dc:creator>
      <dc:date>2023-06-22T13:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic text input on synthetic monitor</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Dynamic-text-input-on-synthetic-monitor/m-p/221047#M2033</link>
      <description>&lt;P&gt;In the first script, store the PNR value in a Credential Vault entry.&amp;nbsp;CREDENTIALS_VAULT-xxx is the credential vault entry where you are storing the PNR,&amp;nbsp;CREDENTIALS_VAULT-yyy is the token needed to update the crdential vault entry.&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;api.startAsyncSyntheticEvent();
var PNR = yourPNRvalue;
url = 'https://yourTenant.live.dynatrace.com/api/v2/credentials/CREDENTIALS_VAULT-xxx';
pdata = '{  "name": "YourCredentialName",  "type": "TOKEN",  "token": "' + PNR + '"}';
api.info(pdata);
fetch(url, {
        method: 'put',
        body: pdata,
        headers: {
            'accept': 'application/json; charset=utf-8',
            'Content-Type': 'application/json; charset=utf-8',
            'Authorization': 'Api-Token ' + api.getCredential("CREDENTIALS_VAULT-yyy", "token")
        }
    }).then(function(res) {
        ResponseCode = res.status;
        api.info("responseCode = " + ResponseCode);
        return res.text();
    })
    .then(function(data) {

        if (ResponseCode == 204) {
            api.finish();

        } else {
            api.fail('Update failed: ' + ResponseCode);
        }
    })
    .catch(e =&amp;gt; api.fail(e));&lt;/LI-CODE&gt;
&lt;P&gt;Then in the&amp;nbsp; second script you can retrieve the PNR and &lt;A href="https://www.dynatrace.com/support/help/shortlink/id-brower-clickpath-events#javascript-event-api" target="_self"&gt;set a variable&lt;/A&gt; with it to be used elsewhere in the script&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;var PNR = api.getCredential("CREDENTIALS_VAULT-xxx", "token");

api.setValue("PNR", PNR);&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 18 Aug 2023 16:06:15 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Dynamic-text-input-on-synthetic-monitor/m-p/221047#M2033</guid>
      <dc:creator>HannahM</dc:creator>
      <dc:date>2023-08-18T16:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic text input on synthetic monitor</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Dynamic-text-input-on-synthetic-monitor/m-p/224000#M2072</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/58694"&gt;@Osiris5654&lt;/a&gt;&amp;nbsp;did it help you?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 14:11:41 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Dynamic-text-input-on-synthetic-monitor/m-p/224000#M2072</guid>
      <dc:creator>AgataWlodarczyk</dc:creator>
      <dc:date>2023-09-27T14:11:41Z</dc:date>
    </item>
  </channel>
</rss>

