<?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: Getting local tenant url in JavaScript (Workflow or any other JS Code) in Developer Q&amp;A Forum</title>
    <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Getting-local-tenant-url-in-JavaScript-Workflow-or-any-other-JS/m-p/231489#M713</link>
    <description>&lt;P&gt;Hi Andreas,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To get an environment URL in the JavaScript action, you can use &lt;FONT color="#FF0000"&gt;&lt;EM&gt;&lt;FONT face="helvetica"&gt;globalThis.environmentUrl&lt;/FONT&gt;&lt;/EM&gt;&lt;/FONT&gt;. Please see the &lt;A href="https://community.dynatrace.com/t5/Developer-Q-A-Forum/WorkFlows-get-current-environment-url/m-p/219264/highlight/true#M443" target="_self"&gt;related question&lt;/A&gt;. Please beware that this is available only in the JavaScript action, and currently, we don't have any alternatives for other actions. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'll take your suggestion and discuss it with the team.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Dec 2023 15:45:49 GMT</pubDate>
    <dc:creator>michal_zawislak</dc:creator>
    <dc:date>2023-12-11T15:45:49Z</dc:date>
    <item>
      <title>Getting local tenant url in JavaScript (Workflow or any other JS Code)</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Getting-local-tenant-url-in-JavaScript-Workflow-or-any-other-JS/m-p/231479#M712</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;I am currently developing a workflow that is eventually sending a message to an external Chat Systems with a link back to the Dynatrace Environment that executes the workflow.&lt;/P&gt;
&lt;P&gt;I would like that workflow to not have a hard-coded Dynatrace Tenant URL included so that I can more easily share that workflow. My question now: Is there anything in JavaScript that allows me to retrieve the current Tenant URL? And in particular for workflows - is there any global context variable that I can use in most of our Workflow tasks, e.g: Http Request as a jinja expression, e.g: {{ .currentTenant.url }}?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 15:15:58 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Getting-local-tenant-url-in-JavaScript-Workflow-or-any-other-JS/m-p/231479#M712</guid>
      <dc:creator>andreas_grabner</dc:creator>
      <dc:date>2023-12-11T15:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Getting local tenant url in JavaScript (Workflow or any other JS Code)</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Getting-local-tenant-url-in-JavaScript-Workflow-or-any-other-JS/m-p/231489#M713</link>
      <description>&lt;P&gt;Hi Andreas,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To get an environment URL in the JavaScript action, you can use &lt;FONT color="#FF0000"&gt;&lt;EM&gt;&lt;FONT face="helvetica"&gt;globalThis.environmentUrl&lt;/FONT&gt;&lt;/EM&gt;&lt;/FONT&gt;. Please see the &lt;A href="https://community.dynatrace.com/t5/Developer-Q-A-Forum/WorkFlows-get-current-environment-url/m-p/219264/highlight/true#M443" target="_self"&gt;related question&lt;/A&gt;. Please beware that this is available only in the JavaScript action, and currently, we don't have any alternatives for other actions. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'll take your suggestion and discuss it with the team.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 15:45:49 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Getting-local-tenant-url-in-JavaScript-Workflow-or-any-other-JS/m-p/231489#M713</guid>
      <dc:creator>michal_zawislak</dc:creator>
      <dc:date>2023-12-11T15:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Getting local tenant url in JavaScript (Workflow or any other JS Code)</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Getting-local-tenant-url-in-JavaScript-Workflow-or-any-other-JS/m-p/231503#M714</link>
      <description>&lt;P&gt;Thanks! That helps a lot already. Would be great if this could also be provided as Workflow Context Values so that every action can also use this easily through e.g: jinja expressions&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 17:28:54 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Getting-local-tenant-url-in-JavaScript-Workflow-or-any-other-JS/m-p/231503#M714</guid>
      <dc:creator>andreas_grabner</dc:creator>
      <dc:date>2023-12-11T17:28:54Z</dc:date>
    </item>
  </channel>
</rss>

