# Query web and mobile application on the same information

**URL:** <https://community.dynatrace.com/t/query-web-and-mobile-application-on-the-same-information/38688>\
**Category:** Open Q&A\
**Tags:** dynatrace-managed, request-attributes\
**Created:** [March 3, 2023, 8:41pm UTC](https://community.dynatrace.com/t/query-web-and-mobile-application-on-the-same-information/38688 "2023-03-03T20:41:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gus\_solji](https://avatars.discourse-cdn.com/v4/letter/g/90db22/32.png) [@gus\_solji](https://community.dynatrace.com/u/gus_solji)\
**Post date:** [March 3, 2023, 8:41pm UTC](https://community.dynatrace.com/t/query-web-and-mobile-application-on-the-same-information/38688/1 "2023-03-03T20:41:29Z")

</div>

Hi, I have a web application and a mobile application with the same functionality. Can I make a query to know if an error is present in both and show me the information?

Thanks

---

<div class="post-metadata">

**Author:** ![dannemca](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dannemca/32/7215_2.png) [@dannemca](https://community.dynatrace.com/u/dannemca)\
**Post date:** [March 6, 2023, 2:24pm UTC](https://community.dynatrace.com/t/query-web-and-mobile-application-on-the-same-information/38688/2 "2023-03-06T14:24:31Z")

</div>

Yes you can, using USQL ([Custom queries, segmentation, and aggregation of session data in RUM Classic — Dynatrace Docs](https://www.dynatrace.com/support/help/platform-modules/digital-experience/user-sessions/custom-queries-segmentation-and-aggregation-of-session-data).

Example:

Query: “SELECT \* FROM usersession WHERE (useraction.requestErrorCount\>0 AND (useraction.application=‘easyTravel Mobile’ OR userevent.application=‘easyTravel Mobile’ OR usererror.application=‘easyTravel Mobile’ OR useraction.application='[www.easytravel.com](http://www.easytravel.com)&nbsp;’ OR userevent.application='[www.easytravel.com](http://www.easytravel.com)&nbsp;’ OR usererror.application='[www.easytravel.com](http://www.easytravel.com)&nbsp;'))”

 ![Screenshot 2023-03-06 at 11.23.50.png](https://global.discourse-cdn.com/dynatrace/original/3X/d/5/d57de5932d6716fb4508aecf6d4b2780b943df53.png)

---

<div class="post-metadata">

**Author:** ![gus\_solji](https://avatars.discourse-cdn.com/v4/letter/g/90db22/32.png) [@gus\_solji](https://community.dynatrace.com/u/gus_solji)\
**Post date:** [March 6, 2023, 5:01pm UTC](https://community.dynatrace.com/t/query-web-and-mobile-application-on-the-same-information/38688/3 "2023-03-06T17:01:58Z")

</div>

Thansks for your help!

Can I search for an error specifically between applications? e.g. “The id is required”? or&nbsp;or more specific for what the error says?

---

<div class="post-metadata">

**Author:** ![dannemca](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dannemca/32/7215_2.png) [@dannemca](https://community.dynatrace.com/u/dannemca)\
**Post date:** [March 6, 2023, 5:27pm UTC](https://community.dynatrace.com/t/query-web-and-mobile-application-on-the-same-information/38688/4 "2023-03-06T17:27:05Z")

</div>

You can set up custom errors for web application and then filter by them, [Configure error detection for web applications in RUM Classic — Dynatrace Docs](https://www.dynatrace.com/support/help/platform-modules/digital-experience/web-applications/setup-and-configuration/additional-configuration/configure-errors#configure-custom-errors)

For Mobile, there is no such option in settings, but I guess you can set errors in your app code, and then query for these errors. If still not possible , maybe you can leverage the user actions portion, to define an error as user action and use them in the queries.
