动态365,获取用fetchxml / c#的记录的所有者
如何使用fetchxml或c#检索记录的所有者(例如任务)?
我可以将两个表任务和所有者与fetchxml联系起来:
<fetch>
<entity name="task">
<link-entity name="owner" from="ownerid" to="ownerid" />
</entity>
</fetch>
但是我不确定如何进一步连接。我正在使用IS Systemuser
进行测试的记录,我知道并猜测是联系人。但是ContactID的GUID在哪里?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
经过一堆Google搜索,我找到了答案。任务的所有者不能联系,而是Systemuser。因此,这是我创建以下代码的FetchXML,
这给了我任务拥有的系统用途者和团队的结果。
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.