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

How to Customize Rest Api for Item

(0) ShareShare
ReportReport
Posted on by 45

I FOUND A POST SAYING ITS NOT DOABLE

I have extended a table using AL in Vs Code.

something like this

tableextension 50119 MyItemExtension extends item
and i added this field
   field(50121; DIN; Text[100])
        {
            DataClassification = ToBeClassified;
        }

i modified the page for the item and i now see new field in the page.  Also if I create a webservice on the page i can see the new field in the OData returned.

What i would like to do however is modify the API

so when i do a get to 

api.businesscentral.dynamics.com/.../items

the new field is included.

I tried to play with the API Template by creating a new template which would include the new field, but it didnt work as far as i know

Do I need to create a custom API altogether ? or is there a way to add a custom field to the existing API

I have the same question (0)
  • Suggested answer
    Mohana Yadav Profile Picture
    61,005 Super User 2025 Season 2 on at

    we need to create custom APIs with required fields.

  • Suggested answer
    JAngle Profile Picture
    133 on at

    Another method you could try: community.dynamics.com/.../how-to-extend-business-central-api-without-extensions

    This is fine for a small amount of fields. The custom method seems best though. Copy the source code from here: github.com/.../APIV2Items.Page.al

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

#2
YUN ZHU Profile Picture

YUN ZHU 663 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 515

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans