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.
 
  • Suggested answer
    Mohana Yadav Profile Picture
    61,260 Super User 2026 Season 2 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 665 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 418 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 280 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans