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

Item Location odata link

(0) ShareShare
ReportReport
Posted on by 15

I want to analyse Item availability by location e.g inventory, demand, free stock. I would like the flexibility to do this in Excel & Power BI is it possible to access this information through Odata ?

  • Suggested answer
    YUN ZHU Profile Picture
    82,945 Super User 2025 Season 1 on at
    RE: Item Location odata link

    Hi, You can try the Create Data Set feature in Web Service page, but keep in mind that not all existing pages support Odata well, please try to create an API page for best performance, if you are not familiar with the API page, please try to create a new page, and then publish to Web Service.

    pastedimage1661386586663v1.png

    Hope this helps.

    Thanks.

    ZHU

  • Suggested answer
    Steven Renders Profile Picture
    5,500 Moderator on at
    RE: Item Location odata link

    Those pages are doing calculations in AL code to show the inventory by location, using tep tables, and in odata they don't display any data indeed.

    Best is for example to use the Item page and the Item Ledger Entry page as odata or api data sources in Power BI. Then use the Quantity or Remaining Quantity fields of the Item Ledger entry table in combination with for example Location Code, to display in a Matrix visual or in Power BI measures.

    Even better is creating Query (API) objects, Item, Item Ledger Entry,... with exactly the columns you need. Queries support group by, so the resultset is smaller and so the data load is faster in PBI.

  • Andrew Lane Lindy Profile Picture
    15 on at
    RE: Item Location odata link

    Thanks, the info. I can't see an Odata feed that does this out of the box (even just getting the stock figure by location without looking at free stock) and I have tried creating a new Odata feed using page 491 Items by Location, 492 Item Availability by Location, 515 Lines & 9231 Items by Location Matrix. One of these just returns zeros and the others report errors. I have only been using Dynamics for 2 months so forgive me if this is a stupid question.

  • Andrew Lane Lindy Profile Picture
    15 on at
    RE: Item Location odata link

    Thanks, the info. I can't see an Odata feed that does this out of the box (even just getting the stock figure by location without looking at free stock) and I have tried creating a new Odata feed using page 491 Items by Location, 492 Item Availability by Location, 515 Lines & 9231 Items by Location Matrix. One of these just returns zeros and the others report errors. I have only been using Dynamics for 2 months so forgive me if this is a stupid question.

  • Suggested answer
    JAngle Profile Picture
    91 on at
    RE: Item Location odata link

    100% possible based on what has been suggested thus far. Tempted to suggest you may need an additional query or api to handle your request in an optimum way. Qty. Reserved is not part of the existing api’s, which might be needed to get the true “free stock” number.

  • Suggested answer
    YUN ZHU Profile Picture
    82,945 Super User 2025 Season 1 on at
    RE: Item Location odata link

    Hi, yes.

    For example, in Power BI

    pastedimage1661298373674v1.png

    You can access Odata in Websevice, and APIs.

    pastedimage1661298422988v2.png

    With Power BI, there is another interesting use.

    Set Business Central data to show in Excel Organization Data Types Gallery (Featured tables in Power BI)

    https://yzhums.com/25234/

    Hope this helps.

    Thanks.

    ZHU

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,025 Moderator on at
    RE: Item Location odata link

    Yes, that is fully possible.

    docs.microsoft.com/.../odata-web-services

    If you connect your Power BI to Business Central it will show you a list of available API's you can chose from.

    And if there is data you need that are not covered by the default API's you can publish additional pages or quires  as webservice.

    docs.microsoft.com/.../across-how-use-financials-data-source-powerbi

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 691

#2
YUN ZHU Profile Picture

YUN ZHU 646 Super User 2025 Season 1

#3
Mansi Soni Profile Picture

Mansi Soni 495

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans