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.
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.