<?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: WorkFlows get current environment url in Developer Q&amp;A Forum</title>
    <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/WorkFlows-get-current-environment-url/m-p/219264#M443</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/59605"&gt;@Jingyi&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;At the moment, it's not possible to get environment detail with the &lt;CODE&gt;@dynatrace-sdk/app-environment&lt;/CODE&gt; SDK.&amp;nbsp;However, support for that is planned for later this year.&lt;/P&gt;
&lt;P&gt;In the meantime, you can use &lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;globalThis.environmentUrl&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;to get the current environment URL.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="michal_zawislak_0-1690787398561.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/13217i3AD16B16761BFBDB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="michal_zawislak_0-1690787398561.png" alt="michal_zawislak_0-1690787398561.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Aug 2023 07:49:39 GMT</pubDate>
    <dc:creator>michal_zawislak</dc:creator>
    <dc:date>2023-08-01T07:49:39Z</dc:date>
    <item>
      <title>WorkFlows get current environment url</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/WorkFlows-get-current-environment-url/m-p/219217#M442</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am currently working on WorkFlows, and try to get current environment URL by&lt;SPAN&gt;&amp;nbsp;getEnvironmentUrl() from '@dynatrace-sdk/app-environment'. But when I execute it, it gives me the error shows as the screenshot.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;An error occurred: {"code": 541, "message": "Execution crashed.", "details": {"type": "BAD_REQUEST", "message": "&amp;lt;stripped secret anyhow::Error&amp;gt;"}}&lt;/LI-CODE&gt;&lt;P&gt;Does this mean in WorkFlows it is not allowed use this way to get current environment URL? And is there any other way/function I can use to get the current environment URL?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jingyi_0-1690556796661.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/13205iF80301D9A262F34A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jingyi_0-1690556796661.png" alt="Jingyi_0-1690556796661.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 15:13:35 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/WorkFlows-get-current-environment-url/m-p/219217#M442</guid>
      <dc:creator>Jingyi</dc:creator>
      <dc:date>2023-07-28T15:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: WorkFlows get current environment url</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/WorkFlows-get-current-environment-url/m-p/219264#M443</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/59605"&gt;@Jingyi&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;At the moment, it's not possible to get environment detail with the &lt;CODE&gt;@dynatrace-sdk/app-environment&lt;/CODE&gt; SDK.&amp;nbsp;However, support for that is planned for later this year.&lt;/P&gt;
&lt;P&gt;In the meantime, you can use &lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;globalThis.environmentUrl&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;to get the current environment URL.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="michal_zawislak_0-1690787398561.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/13217i3AD16B16761BFBDB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="michal_zawislak_0-1690787398561.png" alt="michal_zawislak_0-1690787398561.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 07:49:39 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/WorkFlows-get-current-environment-url/m-p/219264#M443</guid>
      <dc:creator>michal_zawislak</dc:creator>
      <dc:date>2023-08-01T07:49:39Z</dc:date>
    </item>
  </channel>
</rss>

