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

Creation of an Odata feed based on a query

(0) ShareShare
ReportReport
Posted on by 15

Hi,

Is it possible to create a 'custom' odata web service based on a sql query, i.e. is it possible for a 'normal user' without having to pay a developer ?

Sample query

SELECT  Item_No

      ,MIN(Posting_Date) as NewOnStock_Date_UK       

  FROM < the Dynamics table called [item ledger entries export] >

  WHERE Location_Code = 'GIN'

       AND Document_Type =  'Purchase Receipt'

GROUP BY Item_No

ORDER BY Item_No ASC

I have the same question (0)
  • Suggested answer
    Marco Mels Profile Picture
    on at

    Hello,

    Maybe create and publish a PowerBi report and embed that in BC?

    Thank you.

  • Suggested answer
    Steven Renders Profile Picture
    5,672 Moderator on at

    No, that's not possible, because of the MIN(Posting_Date) requirement ;-)

    However, you can use the Reporting Data Setup wizard, as a user in BC, to expose Pages/Queries as ODATA web services:

    If you can’t find it in the Assisted Setup, then you can try this link:

    https://businesscentral.dynamics.com/?page=6711

    This runs page 6711, the Setup Reporting Data wizard.ReportingDataSetup.png

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 3,226

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,047 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,257 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans