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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Unanswered

Multiple parts to same Page from an API page

(0) ShareShare
ReportReport
Posted on by 5

Hello,

We want to make an API page to get Location related information on Transfer Header so we have a Location Page called "APIV2 - Location" and we add the relation to ZeroOrOne on the TransferHeader page like this:

part(transferFromLocation; "APIV2 - Location")
{
    Caption = 'Transfer From Location';
    EntityName = 'location';
    Multiplicity = ZeroOrOne;
    SubPageLink = Code = Field("Transfer-from Code");
}

part(transferToLocation; "APIV2 - Location")
{
    Caption = 'Transfer To Location';
    EntityName = 'location';
    Multiplicity = ZeroOrOne;
    SubPageLink = Code = Field("Transfer-to Code");
}

part(inTransitLocation; "APIV2 - Location")
{
    Caption = 'In Transit Location';
    EntityName = 'location';
    Multiplicity = ZeroOrOne;
    SubPageLink = Code = Field("In-Transit Code");
}

This code can be packaged but the metadata shows error 500:

{
  "error": {
    "code": "BadRequest_InvalidArgument",
    "message": "An incompatible property definition already exists for transferHeader.location."
  }
}
 

If we try to change the EntityName then the AL COP shows the error: 

The page 'APIV2 - TransferHeader' of type 'API' and its control 'transferFromLocation' of type 'Part' must have the same value of property 'EntityName'.ALAL0532
There is any way to do that?
Thank you
I have the same question (0)

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

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,867 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,153 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans