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...
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

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,986 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,071 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 975 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans