cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Call an APP in dynatrace passing GET parameter

andreaCaria
Participant

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?

2 REPLIES 2

stefan_eggersto
Dynatrace Mentor
Dynatrace Mentor

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>
Please let me know if this works for you!

andreaCaria
Participant

It worked perfectly,
thank you 🙂

Featured Posts