
Hello.
How to get e-mail from timeline use fetchxml?
I need to get this e-mails.
I have this code, but he not working
oldRegardingObjectId - This is the parameter that passes the id.
return $@"<fetch mapping='logical'>
<entity name='annotation'>
<attribute name='objectid'/>
<filter type='and'>
<condition attribute='objectid' operator='eq' value='{oldRegardingObjectId}'/>
</filter>
</entity>
</fetch>";
Hi,
Thank you for your query.
You need to query Email entity (Annotations are only notes).
Here is a sample FetchXML:
It is easier to start with Advanced Find to build your query (Look for Email Messages entity). Then you can download the FetchXML:
Also, following plugin of XRM Tool Box comes handy when testing/experimenting with FetchXML: