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

Query an External Database

(0) ShareShare
ReportReport
Posted on by 33

Hello, I have established a connection with an external SQL database and setup a table and a page to read from the table located in the said database. I am successfully receiving all the record but I want to filter them based on a field. I can filter them once I have received all the records but is there any way that it only fetches the records that I want on the first time around.

Table:

pastedimage1669202411460v1.png

Page:

pastedimage1669202496152v2.png

pastedimage1669202638760v3.png

I have the same question (0)
  • Verified answer
    DAnny3211 Profile Picture
    11,397 on at

    Hi

    This way you cannot retrieve the records you need, but you can apply code filters on the page, in the onopenpage for example:

    rec.setfilter(Yourfield,'XXXX');

    DANiele

  • EazyDynamics Profile Picture
    33 on at

    Thank you so much, I appreciate your response

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,092

#2
YUN ZHU Profile Picture

YUN ZHU 663 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 515

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans