I'm using this fetchXml query (in Postman)
<fetch mapping='logical'>
<entity name='account'>
<attribute name='accountid'/>
<attribute name='name'/>
<attribute name='accountnumber'/>
<link-entity name='contact' alias='contact' to='_primarycontactid_value' from='contactid' link-type='inner'>
<attribute name='fullname'/>
</link-entity>
</entity>
</fetch>
But getting
{
"error": {
"code": "0x80041103",
"message": "'Account' entity doesn't contain attribute with Name = '_primarycontactid_value' and NameMapping = 'Logical'. MetadataCacheDetails: ProviderType=Dynamic, StandardCache=True, IsLoadedInStagedContext = False, Timestamp=92819704, MinActiveRowVersion=92819704, MetadataInstanceId=19179712, LastUpdated=2022-12-18 11:07:37.753, OrgId=e1a01dd8-fc2e-4f46-a97d-d3c35656546e"
}
}
Though when I query accounts, I see that column:
"_primarycontactid_value": "6693722c-db76-ed11-81ac-002248933e1f",