<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to query useraction table through api ? in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Query-User-Action-Table-via-API-Using-DQL-for-Detailed-Insights/m-p/287897#M2679</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;If you want to run this query via API and get the JSON response, just call the &lt;STRONG&gt;User Session Query Language API (v1)&lt;/STRONG&gt; like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;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&amp;amp;addDeepLinkFields=false&amp;amp;explain=false&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 14 Oct 2025 20:15:37 GMT</pubDate>
    <dc:creator>t_pawlak</dc:creator>
    <dc:date>2025-10-14T20:15:37Z</dc:date>
    <item>
      <title>Query User Action Table via API Using DQL for Detailed Insights</title>
      <link>https://community.dynatrace.com/t5/DQL/Query-User-Action-Table-via-API-Using-DQL-for-Detailed-Insights/m-p/287893#M2678</link>
      <description>&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Hello all, I am trying to query useraction table&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;SELECT&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Top&lt;/SPAN&gt;&lt;SPAN&gt; (usersession.userId,&lt;/SPAN&gt;&lt;SPAN&gt;1000&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;FROM&lt;/SPAN&gt;&lt;SPAN&gt; useraction&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;WHERE&lt;/SPAN&gt; &lt;SPAN&gt;application&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;myapp'&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;AND&lt;/SPAN&gt;&lt;SPAN&gt; usersession.userId &lt;/SPAN&gt;&lt;SPAN&gt;IS NOT NULL&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;AND&lt;/SPAN&gt;&lt;SPAN&gt; usersession.userId &lt;/SPAN&gt;&lt;SPAN&gt;IN&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;'User EID : 781949'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'User EID : 199730932'&lt;/SPAN&gt;&lt;SPAN&gt;,)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;GROUP BY&lt;/SPAN&gt;&lt;SPAN&gt; usersession.userId&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;LIMIT&lt;/SPAN&gt; &lt;SPAN&gt;5000&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;I have thousands of coma seperated values in IN ('User EID : 781949','User EID : 199730932',)&lt;BR /&gt;&lt;BR /&gt;How I will run this query through api and get output as json reponse ?&lt;BR /&gt;&lt;BR /&gt;I checked this documentation&lt;BR /&gt;&lt;A href="https://docs.dynatrace.com/docs/discover-dynatrace/references/dynatrace-api/environment-api/rum/user-sessions/table" target="_blank" rel="noopener noreferrer"&gt;https://docs.dynatrace.com/docs/discover-dynatrace/references/dynatrace-api/environment-api/rum/user...&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;I think v1 is now deprecated. Also please help on how to convert spaces in query to special symbols as seen in docs &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 17 Dec 2025 13:01:33 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Query-User-Action-Table-via-API-Using-DQL-for-Detailed-Insights/m-p/287893#M2678</guid>
      <dc:creator>ababu</dc:creator>
      <dc:date>2025-12-17T13:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to query useraction table through api ?</title>
      <link>https://community.dynatrace.com/t5/DQL/Query-User-Action-Table-via-API-Using-DQL-for-Detailed-Insights/m-p/287897#M2679</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;If you want to run this query via API and get the JSON response, just call the &lt;STRONG&gt;User Session Query Language API (v1)&lt;/STRONG&gt; like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;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&amp;amp;addDeepLinkFields=false&amp;amp;explain=false&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 14 Oct 2025 20:15:37 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Query-User-Action-Table-via-API-Using-DQL-for-Detailed-Insights/m-p/287897#M2679</guid>
      <dc:creator>t_pawlak</dc:creator>
      <dc:date>2025-10-14T20:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to query useraction table through api ?</title>
      <link>https://community.dynatrace.com/t5/DQL/Query-User-Action-Table-via-API-Using-DQL-for-Detailed-Insights/m-p/287915#M2680</link>
      <description>&lt;P&gt;How to add %xx to space in the query. I have many queries and IN list contains 1000s of values to check.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2025 05:20:10 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Query-User-Action-Table-via-API-Using-DQL-for-Detailed-Insights/m-p/287915#M2680</guid>
      <dc:creator>ababu</dc:creator>
      <dc:date>2025-10-15T05:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to query useraction table through api ?</title>
      <link>https://community.dynatrace.com/t5/DQL/Query-User-Action-Table-via-API-Using-DQL-for-Detailed-Insights/m-p/287954#M2683</link>
      <description>&lt;P&gt;You don’t need to manually replace spaces with %xx.&lt;BR /&gt;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.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2025 12:41:14 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Query-User-Action-Table-via-API-Using-DQL-for-Detailed-Insights/m-p/287954#M2683</guid>
      <dc:creator>t_pawlak</dc:creator>
      <dc:date>2025-10-15T12:41:14Z</dc:date>
    </item>
  </channel>
</rss>

