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.