CRM 2011 从 ActivityPartySet 获取必需和可选的联系人姓名
我正在尝试在 SSRS 中为 CRM 2011 创建报告,并尝试从 AppointmentSet 获取信息。我可以获得除必需和可选参加者之外的所有内容。我非常确定 AppointmentSet 链接到 ActivityPartySet 以供与会者使用。但我不确定。您将如何获得所需的与会者和可选的与会者。这是我到目前为止所拥有的。
<fetch>
<entity name="appointment">
<attribute name="scheduledstart" />
<link-entity name="systemuser" from="systemuserid" to="ownerid">
<attribute name="firstname" alias="ownerFirstName" />
<attribute name="lastname" alias="ownerLastName" />
</link-entity>
<link-entity name="contact" from="contactid" to="new_contactperson">
<attribute name="parentcustomerid" alias="parentaccount" />
<attribute name="new_businessunit" alias="businessunit" />
</link-entity>
<attribute name="new_contactperson" />
<attribute name="subject" />
<attribute name="new_coldernotes" />
<link-entity name="activityparty" from="activityid" to="activityid">
<attribute name="participationtypemask" alias="participationtypemask" />
</link-entity>
</entity>
</fetch>
I am trying to create a report in SSRS for CRM 2011 and I am trying to get information from the AppointmentSet. I am able to get everything expect the Required and Optional Attendees. I'm pretty sure the AppointmentSet links to the ActivityPartySet to for the attendees. But I am not sure. How would you go about getting the required attendees and optional attendees. This is what I have so far.
<fetch>
<entity name="appointment">
<attribute name="scheduledstart" />
<link-entity name="systemuser" from="systemuserid" to="ownerid">
<attribute name="firstname" alias="ownerFirstName" />
<attribute name="lastname" alias="ownerLastName" />
</link-entity>
<link-entity name="contact" from="contactid" to="new_contactperson">
<attribute name="parentcustomerid" alias="parentaccount" />
<attribute name="new_businessunit" alias="businessunit" />
</link-entity>
<attribute name="new_contactperson" />
<attribute name="subject" />
<attribute name="new_coldernotes" />
<link-entity name="activityparty" from="activityid" to="activityid">
<attribute name="participationtypemask" alias="participationtypemask" />
</link-entity>
</entity>
</fetch>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不完全清楚您的要求,但以下代码片段将返回可选或必需与会者的完整详细信息,但前提是它们是系统用户记录。如果各方包含其他记录类型,则不会返回任何结果...
否则,如果您省略
systemuser
的整个最终link-entity
节点,您可以看到包含电子邮件地址的addressused
属性。 IE:这有帮助吗?
I'm not fully clear on your requirements but the following snippet will return full details of Optional or Required attendees, but only if they are system user records. If the parties contain other record types then no results are returned...
Otherwise if you omit the entire final
link-entity
node forsystemuser
you can see theaddressused
attribute which contains an email address. I.e.:Does this help?