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

Custom API Not Working Properly in BC

(0) ShareShare
ReportReport
Posted on by 4
I have created a custom API which extends from the Items API in Business Central, it adds a few new fields like Market Industry and ProductFamily etc,
 
as suggested by a few other posts, I have followed https://www.kauffmann.nl/2021/03/12/extending-standard-apis-1/ in order to create my custom API, however after I finished everything and ran the API I got the error that //The field name 'SomeCustomField' can only appear once in the table 'Item'. The field is declared in multiple apps with IDs: 'xyxyxyxyxy'...//
 
I'm not sure why I am getting this error and i'm not sure what it means.
 
Here is the code for one custom field
 
API File
 
                field(MarketIndustry; Rec.MarketIndustry)
                {
                    Caption = 'Market Industry';
                    trigger OnValidate()
                    begin
                        RegisterFieldSet(Rec.FieldNo(MarketIndustry));
                    end;
                }
 
Table Extension File
 
        field(60101; MarketIndustry; Text[30])
        {
            Caption = 'Market Industry';
        }
 
 
And for the custom fields that don't give errors, in Power Automate when I run a BC Automation they don't fill in any of the boxes/values when I run the Automation.
 
I have the same question (0)
  • Suggested answer
    Mohana Yadav Profile Picture
    61,186 Super User 2026 Season 1 on at
    As per the error, the field is declared in multiple apps so please check those apps and keep the field in just one of those apps.

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,857 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,047 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 959 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans