20 Sep 2023 11:32 AM
Hi,
in our custom app, we would like to reindex the user into a classic dynatrace app in the same tenant by passing some parameters in the URL.
In particular, we would like to land on the APP: dynatrace.classic.query.user.sessions and change the get parameter:
gtf and query in such a way the user see immediately the result of the query.
On the documentation we have found this approach:
https://developer.dynatrace.com/reference/design-system/preview/navigation/AppLink/
The implemented code is this:
<AppLink appId="dynatrace.classic.query.user.sessions">
Link to user session
</AppLink>
But it seems does not allow us to pass the parameter and the app is loaded with the default ones...
Is there any way to achieve what we are looking to do?
Solved! Go to Solution.
20 Sep 2023 11:58 AM
Hi @andreaCaria,
the AppLink
component does not work for this case since the app dynatrace.classic.query.user.sessions does not support any intents.
For this particular page, you can use the ExternalLink
like following:
import { getEnvironmentUrl } from '@dynatrace-sdk/app-environment';
...
<ExternalLink href={`${getEnvironmentUrl()}/ui/apps/dynatrace.classic.query.user.sessions/ui/user-sessions/query?gtf=-2h&gf=all&sessionquery=SELECT+*+FROM+usersession`}>A link to User Sessions</ExternalLink>
20 Sep 2023 12:01 PM
It worked perfectly,
thank you 🙂