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

Announcements

News and Announcements icon
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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 580 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 462 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 272 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans