web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Display query string from usage data

(0) ShareShare
ReportReport
Posted on by 550

Hi, everyone,
I am currently trying to create a form using a key user, which should display a list of which user is using saved queries within a form.
The saved queries name should ideally be displayed and the queries should be output as a string.

I can also access the packed queries per user via the usage data, but I can't get the queries unpacked.

Within the SysQueryForm class there is the loadQueryPack method, but I can't really get any further with the loaded container from the usage data.

Does anyone of you have an idea how I can achieve the goal.

I can also provide some more information if needed.

greeting
Stefan

I have the same question (0)
  • Martin Dráb Profile Picture
    239,087 Most Valuable Professional on at

    Unfortunately I don't remember the solution in AX 2012, but isn't it a packed instance of QueryRun class? If so, you can unpack it by QueryRun qr = new QueryRun(sysLastValue.Value).

  • Stefan Wojtas Profile Picture
    550 on at

    Hello Martin,

    thanks for your answer, but unfortunately it doesn't seem to be an instance of QueryRun.

    There can also be multiple saved queries in this container.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 689

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 455 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 308 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans