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 :
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,043 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
    101,072 Super User 2026 Season 1 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

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 April Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,003 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,225 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,192

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans