Skip to main content

Notifications

Announcements

No record found.

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

  • Stefan Wojtas Profile Picture
    550 on at
    RE: Display query string from usage data

    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.

  • Martin Dráb Profile Picture
    233,013 Most Valuable Professional on at
    RE: Display query string from usage data

    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).

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,261 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,013 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans