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

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

  • Verified answer
    DAnny3211 Profile Picture
    11,423 Super User 2026 Season 1 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 755 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 413 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 387 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans