How do I retrieve owner of a record (for example a task) with FetchXML or C#?
I can connect the two tables task and owner with FetchXML :
<fetch>
<entity name="task">
<link-entity name="owner" from="ownerid" to="ownerid" />
</entity>
</fetch>
But I'm not sure how to connect further. The record I'm testing with is systemuser
which I know and guess is contact. But where is the guid for contactid?
After a bunch of google searches I found the answer. The owner of a task can't be contact, but systemuser. So this is the FetchXML I created
The following code gives me a result of systemusers and teams owned by tasks.