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

Is it possible to configure Items table as a web service in Business Central?

(0) ShareShare
ReportReport
Posted on by 11

I am trying to configure Items table (as a whole as a web service) because I want to get all the columns that this table exposes at one time. But only "Pages" of this table can be configured which means that I will be able to get only a few columns when configuring for instance "Item Card " page as a web service. Is there any way I can get the Items table at once?

Note: I am using inspect tool and there are a lot of columns that have being exposed for the Item table. Ans I want to get all the columns that I see on Inspect tool

I have the same question (0)
  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,105 Moderator on at

    You can build a custom api and include all the fields you want.

    learn.microsoft.com/.../devenv-develop-custom-api

  • Suggested answer
    YUN ZHU Profile Picture
    95,329 Super User 2025 Season 2 on at

    Hi, You have two ways.
    1. Create a page with all the columns, and then publish it in the Web Service and use Odata to access it.
    2. Create a new API page.
    The second method is more efficient.

    PS: The API page type cannot be extended by creating a page extension object. If you use the standard API, you can only get limited columns.

    https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-api-pagetype

    pastedimage1664930472803v1.png

    Hope this helps as well.

    Thanks.

    ZHU

  • Mery12 Profile Picture
    11 on at

    Thank you for your reply.

    But I have noticed that if we consider the Item table as a "parent", the columns of this table are distributed between different entities that can be configured as web services. For instance: some of the columns of Item table can be found in Item Card entity, some others in ItemSalesAndProfit. How does the system do this distribution of fields between child entities for a table? How does this work?

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,105 Moderator on at

    If you look at the standard API for Items then you can see that you can navigate through the API down to the related tables.

    That is how it is normally done in Business Central.

    https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/resources/dynamics_item

  • Suggested answer
    YUN ZHU Profile Picture
    95,329 Super User 2025 Season 2 on at

    Hi, you can also just use $expand method.

    More details: https://yzhums.com/6117/#toc13

    Hope this helps as well.

    Thanks.

    ZHU

  • Suggested answer
    Mohd Anas Profile Picture
    42 on at

    Yes, you can.

    create a page with all the fields and publish it as page web services and use the odata4 web services link to get all of them OR Go with the API page and add all the fields which you want.

  • DAnny3211 Profile Picture
    11,397 on at

    hi

    you should create a new page with all the info you need and expose it as a web service

    DAniele

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

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,694 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans