You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unexpected behavior of JoinOperator MatchFirstRowUsingCrossApply: ignores EntityAlias and returns columns in PascalCase #519
Not sure if this is the best repo, but when playing with one of the newer join operators, the query below ignores the EntityAlias of the LinkEntity and also returns the column name in Pascal Case ("Name") as opposed to "name".
This is different to the behaviour of other join types (i.e. inner or left outer).
Is this expected?
[Fact]publicvoidShould_return_contact_with_cross_apply_operator_that_matches_first_contoso_account_record(){varquery=newQueryExpression("contact"){ColumnSet=newColumnSet("firstname")};varlinkedEntity=newLinkEntity(linkFromEntityName:"contact",linkToEntityName:"account",linkFromAttributeName:"contactid",linkToAttributeName:"primarycontactid",joinOperator:JoinOperator.MatchFirstRowUsingCrossApply){Columns=newColumnSet("name"),LinkCriteria=newFilterExpression(filterOperator:LogicalOperator.And){Conditions={newConditionExpression(attributeName:"name",conditionOperator:ConditionOperator.BeginsWith,value:"Con")}}};linkedEntity.EntityAlias="account";query.LinkEntities.Add(linkedEntity);varresult=_service.RetrieveMultiple(query);Assert.Single(result.Entities);Assert.Equal("Joe",result.Entities[0]["firstname"]);Assert.Equal("Contoso",result.Entities[0]["account.name"]);//Fails as it just returns the value in a "Name" attribute}
Activity
samh-ms commentedon Feb 18, 2026
Re: Is this expected?
This behavior, while weird, is documented:
https://learn.microsoft.com/en-us/power-apps/developer/data-platform/fetchxml/join-tables?tabs=fetchxml#related-table-propertyattribute-names-are-inconsistent
JimDaly commentedon Feb 18, 2026
Yes. It is expected. That is why we documented it.
It isn't an issue with the service client.