Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Unanswered

Filter record dynamically by using sysQueryForm

(0) ShareShare
ReportReport
Posted on by 45

Hi Team,

I want to create a single report from different module (Sales Quotation and Project Items Trans). the query filter also should come as per the parameter value. Is it possible to have dynamic query as per the parameter value.

Kindly see the below sample.

0755.pastedimage1681718678005v2.png

  • GirishS Profile Picture
    27,825 Moderator on at
    RE: Filter record dynamically by using sysQueryForm

    Hi Bibin,

    As per my understanding ye you can create dynamic query via code, you can create two separate methods for Sales quotation and Project Item trans with the respective dynamic query logic.

    On the process report you can call the respective methods based on the parameter selection.

    Thanks,

    Girish S.

  • Bibin TV Profile Picture
    45 on at
    RE: Filter record dynamically by using sysQueryForm

    My key objective was to set different query as per the parameter selection on the SysQueryForm. Kindly see the below example.

     

    Example

    Parameter 1 : Sales Quotation(Sales and Marketing)

    Parameter 2 : Material Issue(Project)

     

    Query filter should change as per the parameter selection. If Parameter 1 is selected, the query should use the table Sales Quotation otherwise Project Item Transaction table.

    As per your explanation, I understand that, I have to use the same query and assign different data source. Is there any example you can give for the quick understanding??

    Thank you.

  • André Arnaud de Calavon Profile Picture
    294,110 Super User 2025 Season 1 on at
    RE: Filter record dynamically by using sysQueryForm

    Hi Bibin,

    Can you explain what exactly you want to achieve? A report has one query. A query can have multiple data sources (tables). Is your report requirement about querying data to be summarized in one report? Or do you try to get two different reports in one?

  • huijij Profile Picture
    19,811 on at
    RE: Filter record dynamically by using sysQueryForm

    Hi Bibin,

    Can you able to explain business requirements? Do you want to customize the sysQueryForm?

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,110 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans