我对您的要求并不完全清楚,但以下代码段将返回可选或必需与会者的完整详细信息,但前提是他们是系统用户记录。如果各方包含其他记录类型,则不返回任何结果...
<entity name='appointment'>
<attribute name='subject'/>
<attribute name='actualend'/>
<attribute name='actualstart'/>
<filter type='and'>
<condition attribute='activityid' operator='eq' value='MyActivityGuid'/>
</filter>
<link-entity name='activityparty' from='activityid' to='activityid'>
<attribute name='partyidname'/>
<attribute name='participationtypemask'/>
<attribute name='activityid'/>
<attribute name='activitypartyid'/>
<attribute name='addressused'/>
<attribute name='participationtypemaskname'/>
<attribute name='partyid'/>
<attribute name='partyiddsc'/>
<attribute name='partyobjecttypecode'/>
<attribute name='resourcespecid'/>
<attribute name='resourcespeciddsc'/>
<attribute name='resourcespecidname'/>
<attribute name='scheduledend'/>
<attribute name='scheduledstart'/>
<filter type='and'/>
<filter type='or'>
<condition attribute='participationtypemaskname' operator='eq' value='Optional attendee'/>
<condition attribute='participationtypemaskname' operator='eq' value='Required attendee'/>
</filter>
<link-entity name='systemuser' from='systemuserid' to='partyid'>
<attribute name='fullname'/>
</link-entity>
</link-entity>
</entity>
否则,如果您省略整个最终link-entity
节点,systemuser
您可以看到addressused
包含电子邮件地址的属性。IE:
<entity name='appointment'>
<attribute name='subject'/>
<attribute name='actualend'/>
<attribute name='actualstart'/>
<filter type='and'>
<condition attribute='activityid' operator='eq' value='MyActivityGuid'/>
</filter>
<link-entity name='activityparty' from='activityid' to='activityid'>
<attribute name='partyidname'/>
<attribute name='participationtypemask'/>
<attribute name='activityid'/>
<attribute name='activitypartyid'/>
<attribute name='addressused'/>
<attribute name='participationtypemaskname'/>
<attribute name='partyid'/>
<attribute name='partyiddsc'/>
<attribute name='partyobjecttypecode'/>
<attribute name='resourcespecid'/>
<attribute name='resourcespeciddsc'/>
<attribute name='resourcespecidname'/>
<attribute name='scheduledend'/>
<attribute name='scheduledstart'/>
<filter type='and'/>
<filter type='or'>
<condition attribute='participationtypemaskname' operator='eq' value='Optional attendee'/>
<condition attribute='participationtypemaskname' operator='eq' value='Required attendee'/>
</filter>
</link-entity>
</entity>
这有帮助吗?