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

Getting Item ID Guid in ODATA service

(0) ShareShare
ReportReport
Posted on by 259

Hi Community, I am using below ODATA Web service in business central.

Service Name: nativeInvoicingSalesInvoices

Object ID: 2810

Here , in response I am getting Item ID guid in response.

 itemId":"2cefcaeb-621d-ea11-bb2d-000d3a257ac8","description":"AMSTERDAM

Any idea how I can get actual Item Id instead?

I have the same question (0)
  • Suggested answer
    Suresh Kulla Profile Picture
    50,245 Super User 2025 Season 2 on at

    That object ID refers to the header it will not have the line information, to get line information you need to use 5476 page.

  • Suggested answer
    JAngle Profile Picture
    133 on at

    Might be better to choose a different web service. Can depend on what you want to do with the data. If you’re using it with power automate for example with the BC connector you often need the ID. Try publishing the regular sales invoice line page. You will get many more fields.

    Failing that you can extend this page to have the fields you need or create your own page.

  • Danyal Profile Picture
    259 on at

    Is it possible to call both 2810 & 5476 on call? by appending ODATA URL? or any workaround? Actually I need to fetch both header & lines in one call

  • Suggested answer
    Suresh Kulla Profile Picture
    50,245 Super User 2025 Season 2 on at

    You cannot append but if you have a page like 43 you can retrieve both header and lines because subform will part of the page 43.

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

#2
YUN ZHU Profile Picture

YUN ZHU 658 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 595

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans