Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

How to add the mandatory filter in query in business central

(0) ShareShare
ReportReport
Posted on by 10

I have create a query and add some columns like -- Customer No. , Customer Name, Address, etc.

When we get the data in postman all customer data is shown.

But I need the any field filter like Customer No.  when I pass the value of this field then the data is shown otherwise not.

So this Customer No is field filter which is mandatory for getting the data.

I hope now you understand the problem

  • Suggested answer
    YUN ZHU Profile Picture
    85,982 Super User 2025 Season 1 on at
    RE: How to add the mandatory filter in query in business central

    Hi, Have you tried the DataItemTableFilter property?

    For example, https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-query-filters#example

    pastedimage1663722588320v1.png

    Hope this helps.
    Thanks.

    ZHU

  • Suggested answer
    Amit Baru Profile Picture
    3,029 on at
    RE: How to add the mandatory filter in query in business central

    Hi,

    Write Code on Query object trigger for mandatory of Customer No. filter.

    Regards

    Amit Sharma

    www.erpconsultors.com

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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,655

#2
Mansi Soni Profile Picture

Mansi Soni 1,574

#3
YUN ZHU Profile Picture

YUN ZHU 1,453 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans