[Edit]
Hi,
I am building Custom SSRS Report where we need the email records with recipient names (To, CC), From and other fields. I am using FetchXML Like below, but we get error in SSRS when we use Activity party fields like To, From in SSRS FechXML datasource. Please provide the steps to get the names of to and from fields.
Also I want to show Appointments, Emails and Phonecalls in a single report.
I get the below error:

This is the Fetch XML I am using:
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="email">
<attribute name="subject" />
<attribute name="statecode" />
<attribute name="createdby" />
<attribute name="regardingobjectid" />
<attribute name="activityid" />
<attribute name="to" />
<attribute name="from" />
<order attribute="subject" descending="false" />
</entity>
</fetch>