rappen on master
Addding internal methods to do … Using the internal methog (last… Adding filtering by Publisher #… (compare)
dependabot[bot] on nuget
Bump System.Memory from 4.5.4 t… (compare)
dependabot[bot] on nuget
Bump System.Memory from 4.5.4 t… (compare)
rappen on master
Be smarter, find the relationsh… (compare)
rappen on master
Adding previews for Attributes … (compare)
rappen on master
Added StatusBar with info on lo… (compare)
dependabot[bot] on nuget
dependabot[bot] on nuget
email.createdon
with case.resolutiondate
. And FetchXML does not support conditions comparing two field values.<fetch version='1.0' distinct='true' count='50' >
<entity name='contact' >
<attribute name='parentcustomerid' />
<attribute name='lastname' />
<attribute name='firstname' />
<attribute name='contactid' />
<attribute name='cog_ambassadorpreferredlocation5' />
<attribute name='cog_ambassadorpreferredlocation4' />
<attribute name='cog_ambassadorpreferredlocation3' />
<attribute name='cog_ambassadorpreferredlocation2' />
<attribute name='cog_ambassadorpreferredlocation1' />
<attribute name='cog_lastdelivered' />
<attribute name='cog_ambassadortimetotal' />
<attribute name='cog_amabassadorregistrationdate' />
<attribute name='cog_employersite' />
<attribute name='emailaddress1' />
<attribute name='cog_ambassadortrainingcompleted' />
<attribute name='cog_stemambassador' />
<attribute name='gendercode' />
<attribute name='birthdate' />
<attribute name='cog_contactethnicity' />
<order attribute='firstname' descending='false' />
<filter type='and' >
<condition attribute='statecode' operator='eq' value='0' />
<condition attribute='cog_sipambassador' operator='eq' value='1' />
<condition attribute='parentcustomeridname' operator='like' value='%pfizer%' />
</filter>
<link-entity name='cdi_eventparticipation' from='cdi_contactid' to='contactid' link-type='outer' alias='ad' >
<attribute name='cdi_event' />
<filter type='and' >
<condition attribute='cdi_event' operator='in' >
<value uiname='Science in a Box Training' uitype='cdi_event' >{ED3622A6-F907-E711-80F1-000C29502450}</value>
<value uiname='Science in a Box Training - Scotland' uitype='cdi_event' >{11BE5EEB-107D-E711-8119-000C29502450}</value>
</condition>
</filter>
</link-entity>
</entity>
</fetch>
link-entity
element, it looks like the relationship is 1:N from contact to cdi_eventparticipation. It is not possible to include child records in the view of a parent entity in CRM. You can only include information from related parents.
<fetch>
<entity name='opportunity' >
<attribute name='name' />
<link-entity name='account' from='accountid' to='customerid' alias='A' >
<attribute name='telephone1' />
<link-entity name='systemuser' from='systemuserid' to='owninguser' alias='O' >
<attribute name='internalemailaddress' />
</link-entity>
</link-entity>
</entity>
</fetch>
<fetch>
<entity name='account' >
<attribute name='name' />
<filter type='and' >
<condition entityname='C1' attribute='statuscode' operator='neq' value='1' />
<filter type='or' >
<condition entityname='C2' attribute='contactid' operator='null' />
<condition entityname='C2' attribute='statuscode' operator='neq' value='1' />
</filter>
</filter>
<link-entity name='contact' from='contactid' to='new_contactid1' link-type='inner' alias='C1' />
<link-entity name='contact' from='contactid' to='new_contactid2' link-type='outer' alias='C2' />
</entity>
</fetch>
Hi Jonas,
Running version 1.2018.2.2 and I have this query, but the QueryBuilder has trouble understanding the rowaggregate attribute. Maybe a fix in a future version?
´´´
<fetch distinct="false" no-lock="false" mapping="logical" page="1" count="250" returntotalrecordcount="true" >
<entity name="account" >
<attribute name="name" />
<attribute name="address1_city" />
<attribute name="primarycontactid" />
<attribute name="telephone1" />
<attribute name="accountid" />
<attribute name="processid" />
<attribute name="name" />
<attribute name="telephone1" />
<attribute name="address1_city" />
<attribute name="primarycontactid" />
<attribute name="parentaccountid" alias="HierarchyDataParentID6dcd9e4c001441b09237d51a34853d55" />
<attribute name="accountid" alias="HierarchyDataChildCount6dcd9e4c001441b09237d51a34853d55" rowaggregate="CountChildren" />
<filter type="and" >
<condition attribute="ownerid" operator="eq-userid" />
<condition attribute="statecode" operator="eq" value="0" />
</filter>
<order attribute="name" descending="false" />
<link-entity name="contact" to="primarycontactid" from="contactid" link-type="outer" alias="accountprimarycontactidcontactcontactid" >
<attribute name="emailaddress1" />
</link-entity>
<link-entity name="workflow" to="processid" from="workflowid" link-type="outer" alias="processidworkflowworkflowid" >
<attribute name="versionnumber" />
</link-entity>
</entity>
</fetch>
´´´
If you run this query it actually executes, so the innards of CRM has support for the RowAggregate on the attribute node.
More precisely the fetch was taken from an out-of-the-box "Active Accounts" view.