28 Jul 2023 04:13 PM
Hi,
I am currently working on WorkFlows, and try to get current environment URL by getEnvironmentUrl() from '@dynatrace-sdk/app-environment'. But when I execute it, it gives me the error shows as the screenshot.
An error occurred: {"code": 541, "message": "Execution crashed.", "details": {"type": "BAD_REQUEST", "message": "<stripped secret anyhow::Error>"}}
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?
Solved! Go to Solution.
31 Jul 2023 08:12 AM - edited 01 Aug 2023 08:49 AM
Hi @Jingyi,
At the moment, it's not possible to get environment detail with the @dynatrace-sdk/app-environment
SDK. However, support for that is planned for later this year.
In the meantime, you can use globalThis.environmentUrl
to get the current environment URL.