14 Oct 2025 08:19 PM
14 Oct 2025 09:15 PM
Hi,
If you want to run this query via API and get the JSON response, just call the User Session Query Language API (v1) like this:
https://dynatrace.com/api/v1/userSessionQueryLanguage/table?query=SELECT%20usersession.userId%20FROM%20useraction%20WHERE%20application%20%3D%20%22myapp%22%20AND%20usersession.userId%20IS%20NOT%20NULL%20AND%20usersession.userId%20IN%20(%22User%20EID%20%3A%20781949%22%2C%22User%20EID%20%3A%20199730932%22)%20GROUP%20BY%20usersession.userId%20LIMIT%205000&addDeepLinkFields=false&explain=false 15 Oct 2025 06:20 AM
How to add %xx to space in the query. I have many queries and IN list contains 1000s of values to check.
15 Oct 2025 01:41 PM
You don’t need to manually replace spaces with %xx.
If you already have a working USQL query, the easiest way is to use the Dynatrace API Explorer (Swagger UI) — it automatically encodes your query and returns the JSON result.