SELECTTop (usersession.userId,1000)FROM useractionWHERE application = myapp’AND usersession.userId IS NOT NULLAND usersession.userId IN (‘User EID : 781949’,‘User EID : 199730932’,)GROUP BY usersession.userIdLIMIT 5000I have thousands of coma seperated values in IN (‘User EID : 781949’,‘User EID : 199730932’,)
How I will run this query through api and get output as json reponse ?
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.