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

Notifications

Announcements

No record found.

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

I have the same question (0)
  • Suggested answer
    Amit Baru Profile Picture
    3,037 on at

    Hi,

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

    Regards

    Amit Sharma

    www.erpconsultors.com

  • Suggested answer
    YUN ZHU Profile Picture
    95,729 Super User 2025 Season 2 on at

    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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,135

#2
YUN ZHU Profile Picture

YUN ZHU 733 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 612

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans