web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
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,200 Super User 2026 Season 1 on at

    we need to create custom APIs with required fields.

  • Suggested answer
    JAngle Profile Picture
    150 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,870 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,138 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 915 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans