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

Notifications

Announcements

Community site session details

Community site session details

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

API Filter not empty

(0) ShareShare
ReportReport
Posted on by 37

Hi all,

Is there a check in a API page if the filter is specified?

The version I'm using is v17

Kind regards,

Gert-Jan

I have the same question (0)
  • Suggested answer
    steveendow Profile Picture
    2,281 on at

    Hi,

    I asked about this on Twitter using the #BCALHelp tag.

    twitter.com/.../1353744836277334016

    Erik Hougaard found that there is a Record.HasFilter method:

    docs.microsoft.com/.../record-hasfilter-method

    He also shared that there is also a Record.GetFilters() method that can be used to retrieve the filters.

    docs.microsoft.com/.../record-getfilters-method

    Will that work for you?

  • Verified answer
    ajkauffmann Profile Picture
    117 on at

    Steve is actually right, use the filter methods on the record.

    Just wanted to add that you can look into the standard APIs to see an example.

    page 30043 "APIV2 - Sales Invoice Lines" --> trigger OnFindRecord

    github.com/.../APIV2SalesInvoiceLines.Page.al

  • DSS servicedesk Profile Picture
    37 on at

    Thanks.

    That did the trick

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

News and Announcements

Season of Giving Solutions is Here!

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 1,638

#2
YUN ZHU Profile Picture

YUN ZHU 837 Super User 2025 Season 2

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 704 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans