Hi experts,
In the phone call activity entity, I have a field called new_time where I can enter the duration of the phone call.
Now,
For instance, account A. Datum has 3 cases and each case has 1 phone call activity related to it. So I would my FetchXml to show total 3 phone call activities for the 3 cases for the account A.Datum. Another condition I want to add is to only show the phone call activities that are created on in the last 90 days.
I have created the following fetchxml to get me started but I'm having problems with it:
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false"> <entity name="activitypointer"> <attribute name="new_time" alias="time"/> <order attribute="modifiedon" descending="false" /> <filter type="and"> <condition attribute="createdon" operator="last-x-days" value="90" /> <link-entity name="activitypointer" from="activitypointer" to="incidentid" link-type="inner" alias="aa"> <link-entity name="customerid" from="incidentid" to="customerid" link-type="inner" alias="ab"> <link-entity name="accountid" from="accountid" to="customerid" link-type="inner" alias="ac"> <filter type="and"> <condition attribute="accountid" operator="eq" value="A. Datum" /> </link-entity> </filter> </entity> </fetch>
Please help me fix this.
Thanks,
Jon
*This post is locked for comments