<?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: Add cookie while triggering on-demand execution of Browser click-path in Synthetic Monitoring</title>
    <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Cookie-while-triggering-on-demand-execution-of-browser-click/m-p/243779#M2425</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/2080"&gt;@AK&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Have you tried setting the cookie in the "Advanced Settings" settings and tested if it works?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="erh_inetum_1-1713936068775.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/19376iCC6A74AA12234B79/image-size/medium?v=v2&amp;amp;px=400" role="button" title="erh_inetum_1-1713936068775.png" alt="erh_inetum_1-1713936068775.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Elena.&lt;/P&gt;</description>
    <pubDate>Wed, 24 Apr 2024 05:21:19 GMT</pubDate>
    <dc:creator>erh_inetum</dc:creator>
    <dc:date>2024-04-24T05:21:19Z</dc:date>
    <item>
      <title>Cookie while triggering on-demand execution of browser click-path</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Cookie-while-triggering-on-demand-execution-of-browser-click/m-p/243748#M2424</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm triggering on-demand execution for one of our browser click-path monitor.&amp;nbsp;Use case is to pass another navigation URL and associated new cookie. The way to achieve this is by adding customized script with event and cookie.&lt;/P&gt;
&lt;P&gt;I'm able to pass the navigate event but how do I pass cookie in request body. I tried to add cookie like below but that didn't worked.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
    "processingMode": "EXECUTIONS_DETAILS_ONLY",
    "failOnPerformanceIssue": true,
    "failOnSslWarning": true,
    "stopOnProblem": true,
    "takeScreenshotsOnSuccess": true,
    "monitors": [
        {
            "customizedScript": {
                "events": [
                    {
                        "type": "navigate",
                        "url": "https://test.xyz.com",
                    }
                ],
                "cookies": [
                    {
                        "domain": "test.xyz.com",
                        "name": "client",
                        "path": "/summary",
                        "value": "abcdefghijklmnopqrstuvwxyz="
                    }
                ]
            },
            "monitorId": "SYNTHETIC_TEST-bhb439dhco2cc",
            "locations": [
                "SYNTHETIC_LOCATION-abcdsjao932ue2"
            ]
        }
    ]
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Error is,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
    "error": {
        "code": 400,
        "message": "Script validation failed: {\"violations\":[{\"path\":\"/cookies/0\",\"message\":\"Illegal property \\\"cookies/0\\\"\"}]}"
    }
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Need help here.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;AK&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 14:48:35 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Cookie-while-triggering-on-demand-execution-of-browser-click/m-p/243748#M2424</guid>
      <dc:creator>AK</dc:creator>
      <dc:date>2024-05-10T14:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Add cookie while triggering on-demand execution of Browser click-path</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Cookie-while-triggering-on-demand-execution-of-browser-click/m-p/243779#M2425</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/2080"&gt;@AK&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Have you tried setting the cookie in the "Advanced Settings" settings and tested if it works?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="erh_inetum_1-1713936068775.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/19376iCC6A74AA12234B79/image-size/medium?v=v2&amp;amp;px=400" role="button" title="erh_inetum_1-1713936068775.png" alt="erh_inetum_1-1713936068775.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Elena.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 05:21:19 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Cookie-while-triggering-on-demand-execution-of-browser-click/m-p/243779#M2425</guid>
      <dc:creator>erh_inetum</dc:creator>
      <dc:date>2024-04-24T05:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Add cookie while triggering on-demand execution of Browser click-path</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Cookie-while-triggering-on-demand-execution-of-browser-click/m-p/243782#M2426</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/40722"&gt;@erh_inetum&lt;/a&gt;, thank you for your response.&lt;/P&gt;&lt;P&gt;Cookie is already added under advance setup for&amp;nbsp;&lt;BR /&gt;firsttest.xyz.com domain&lt;/P&gt;&lt;P&gt;However, I want to trigger on-demand for another domain&lt;/P&gt;&lt;P&gt;i.e. test.xyz.com&lt;/P&gt;&lt;P&gt;This would be having different cookie value.&lt;/P&gt;&lt;P&gt;What I need a help with how can we pass the cookie in request body for on-demand execution?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;AK&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 05:53:55 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Cookie-while-triggering-on-demand-execution-of-browser-click/m-p/243782#M2426</guid>
      <dc:creator>AK</dc:creator>
      <dc:date>2024-04-24T05:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Add cookie while triggering on-demand execution of Browser click-path</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Cookie-while-triggering-on-demand-execution-of-browser-click/m-p/243784#M2427</link>
      <description>&lt;P&gt;Take a look on this&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/shortlink/id-brower-clickpath-events#javascript" target="_blank"&gt;https://docs.dynatrace.com/docs/shortlink/id-brower-clickpath-events#javascript&lt;/A&gt;&lt;BR /&gt;Not sure if this can help.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 06:30:50 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Cookie-while-triggering-on-demand-execution-of-browser-click/m-p/243784#M2427</guid>
      <dc:creator>PacoPorro</dc:creator>
      <dc:date>2024-04-24T06:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Add cookie while triggering on-demand execution of Browser click-path</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Cookie-while-triggering-on-demand-execution-of-browser-click/m-p/243833#M2428</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/40713"&gt;@PacoPorro&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks for the response. However, I would need help in passing cookie while triggering on-demand synthetic execution via &lt;A href="https://{environmentid}.live.dynatrace.com/api/v2/synthetic/executions/batch" target="_self"&gt;API&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;AK&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 14:45:50 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Cookie-while-triggering-on-demand-execution-of-browser-click/m-p/243833#M2428</guid>
      <dc:creator>AK</dc:creator>
      <dc:date>2024-04-24T14:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Add cookie while triggering on-demand execution of Browser click-path</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Cookie-while-triggering-on-demand-execution-of-browser-click/m-p/243956#M2432</link>
      <description>&lt;P&gt;Any clue on this guys,&lt;/P&gt;&lt;P&gt;Basically, I'm looking to add cookies which we add under advanced setup. This can be seen under configuration section when we go script mode of synthetic monitor like below,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AK_0-1714044666864.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/19427i41C5709F830196D4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AK_0-1714044666864.png" alt="AK_0-1714044666864.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;AK&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 11:32:30 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Cookie-while-triggering-on-demand-execution-of-browser-click/m-p/243956#M2432</guid>
      <dc:creator>AK</dc:creator>
      <dc:date>2024-04-25T11:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Add cookie while triggering on-demand execution of Browser click-path</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Cookie-while-triggering-on-demand-execution-of-browser-click/m-p/244000#M2434</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/1433"&gt;@HannahM&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Is it something that is achievable?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;AK&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 17:15:55 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Cookie-while-triggering-on-demand-execution-of-browser-click/m-p/244000#M2434</guid>
      <dc:creator>AK</dc:creator>
      <dc:date>2024-04-25T17:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Add cookie while triggering on-demand execution of Browser click-path</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Cookie-while-triggering-on-demand-execution-of-browser-click/m-p/244052#M2435</link>
      <description>&lt;P&gt;The script configuration section cannot be customized. The list of events that can be&amp;nbsp;customized can be found &lt;A href="https://docs.dynatrace.com/docs/platform-modules/digital-experience/synthetic-monitoring/general-information/on-demand-executions#api" target="_self"&gt;here&lt;/A&gt; but you can customize a cookie step, so you could add a cookie event to the monitor and then modify that on the fly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 09:46:16 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Cookie-while-triggering-on-demand-execution-of-browser-click/m-p/244052#M2435</guid>
      <dc:creator>HannahM</dc:creator>
      <dc:date>2024-04-26T09:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: Add cookie while triggering on-demand execution of Browser click-path</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Cookie-while-triggering-on-demand-execution-of-browser-click/m-p/244069#M2436</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/1433"&gt;@HannahM&lt;/a&gt;, thanks for confirmation.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;AK&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 12:13:54 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Cookie-while-triggering-on-demand-execution-of-browser-click/m-p/244069#M2436</guid>
      <dc:creator>AK</dc:creator>
      <dc:date>2024-04-26T12:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Add cookie while triggering on-demand execution of Browser click-path</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Cookie-while-triggering-on-demand-execution-of-browser-click/m-p/244149#M2437</link>
      <description>&lt;P&gt;Well I'm able to get workaround on this.&lt;/P&gt;&lt;P&gt;As we cannot pass the configuration section during on-demand execution, we can remove the cookies added from advance section of browser click-path and add 'cookie' event under recorded click-path and we are good to pass the values during on-demand execution. Below is the request body I used successfully.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
    "processingMode": "EXECUTIONS_DETAILS_ONLY",
    "failOnPerformanceIssue": true,
    "failOnSslWarning": true,
    "stopOnProblem": true,
    "takeScreenshotsOnSuccess": true,
    "monitors": [
        {
            "customizedScript": {
                "events": [
                    {
                        "type": "navigate",
                        "url": "https://test.xyz.com"
                    },
                    {
                        "type": "cookie",
                        "cookies": [
                            {
                                "domain": "test.xyz.com",
                                "name": "client",
                                "path": "/profileV2",
                                "value": "abcdefghijklmnopqrstuvwxyz="
                            }
                        ]
                    }
                ]
            },
            "monitorId": "SYNTHETIC_TEST-bhb439dhco2cc",
            "locations": [
                "SYNTHETIC_LOCATION-abcdsjao932ue2"
            ]
        }
    ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this is helpful.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;AK&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2024 19:13:50 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Cookie-while-triggering-on-demand-execution-of-browser-click/m-p/244149#M2437</guid>
      <dc:creator>AK</dc:creator>
      <dc:date>2024-04-28T19:13:50Z</dc:date>
    </item>
  </channel>
</rss>

