web
You’re offline. This is a read only version of the page.
close
Skip to main content
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
    60,989 Super User 2025 Season 2 on at
    Custom API Not Working Properly in BC
    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

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

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 3,033 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,738 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans