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

Custom (filtered) webservices

(1) ShareShare
ReportReport
Posted on by 16
Hi all,
 
We use Power BI to create financial reports from Business Central through Webservices (OData). These reports tend to focus on the current and previous financial year.
As Power BI has recently been struggling with refreshing large tables from BC, we would like to limit the data that is imported from specific tables.
 
E.g. we use an OData-feed to load General Ledger Entries into our Power BI Dataflow, which contains data from 2018 and up. We only need data from 01-01-2022 and later to show up in Power BI.
Is there a way to create an OData-feed in Business Central for a filtered version of the Ledger Entries-table?
Bonus points if this can be a dynamic filter, so we don't have to repeat the process every 1 or 2 years (as in 2024, we will not need 2022-data anymore etc.).
  • Verified answer
    YUN ZHU Profile Picture
    YUN ZHU 78,009 Super User 2025 Season 1 on at
    Custom (filtered) webservices
    Hi, if you add the ODada feed manually, you can try adding filters directly in Endpoint.
     
    For example, https://api.businesscentral.dynamics.com/v2.0/d8f36038-1f93-4543-affc-5dc92b6ee871/Sandbox230/ODataV4/Company('My%20Company')/SalesOrders?$filter=Posting_Date ge 2023-04-02 and Posting_Date lt 2023-05-01
     
    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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans