【发布时间】:2016-05-30 19:29:57
【问题描述】:
我正在尝试构建一个与以下 SQL 查询相同的 FetchXML 查询。基本上,如果约会上的自定义属性“dev_ownercommunityid”等于机会的 ownerid 属性,则输出机会名称和链接约会的主题。
select top 10 o.[name], apt.[subject]
from Opportunity o with (nolock)
left join Appointment apt with (nolock)
on o.opportunityid = apt.regardingobjectid
where apt.dev_ownercommunityid = o.ownerid
/* dev_ownercommunityid is a custom attribute we added to appointment entity */
我可以轻松地进行外部连接,但我不知道如何进行“位置”部分。
请帮忙。我正在使用 Dynamics CRM 2013。
【问题讨论】:
标签: dynamics-crm fetchxml