I was given a Fetch XML and used it lik so: /api/data/v9.0/opportunities?$count=true&fetchXml=%3.........
the results gave me just the IDs of the related names I expected, not the names.
It C# and Microsoft.PowerPlatform.Dataverse.Client.Dynamics I get the names just by adding them to q.ColumnSet = new ColumnSet({here}
and the result is of type "EntityReference" but I need this query for JavaScript.
When I add the referenced to the $select=, i get error that they do not exist . also when I use them in &expand=
Is there a syntax I am missing to do this in REST?
Thank you