fetchxml

Subgrid containing Activities returned by FetchXML query - not always refreshing

为君一笑 提交于 2019-12-11 16:50:04
问题 I have created a subgrid on a Form for the Contact Entity in Dynamics CRM 2015 which returns all Email, Task, Appointment and Phone Call Activities where either the Activity is Regarding the Contact for which the Form has been loaded, or where that Contact is a participant in the Activity (i.e. in the Sender or To/CC/BCC fields for an email, or on the attendee list for an Appointment). I have added a new subgrid (called "NewActivities" for now) to my Contact Form which uses a specific

What does EntityCollection return if FetchXML (AGGREGATE SUM) Query didn't find anything?

混江龙づ霸主 提交于 2019-12-11 07:58:41
问题 I am running a FetchXML query (aggregate='true' for the fetch and aggregate='sum' for all attributes) and passing it to RetreiveMultiple in my C# plugin code. What if the Fetchxml didn't find anything, what does service.RetrieveMultiple retrieve in this case? In the debugger, there is a NullReference exception . FetchXML Builder returns this: I need to handle a case where one of the meals in the contract lines is missing... In my plugin I have three Fetchxml expressions that Retrieve data

CRM 2011 Performing FetchXML group by on custom option set value

假装没事ソ 提交于 2019-12-10 15:54:23
问题 I want to be able to perform a FetchXML request that sums a value while grouping on a field that is a custom option set but I don't get the expected results. All that is returned is the summed up values, not the related custom option set value that it relates to so I have no idea what the returned values relate to. This is the fetchXML request which appears to be correct: <fetch distinct='false' mapping='logical' aggregate='true'> <entity name='opportunity'> <attribute name='estimatedvalue'

Left join in FetchXml?

本秂侑毒 提交于 2019-12-10 15:28:49
问题 How do i do a left join using FetchXml? Consider a simple SQL query like the following: select person.name, address.city from person left join address on person.addressid = address.addressid How would something simple like this be done using FetchXml? Currently my FetchXml query looks like the following: <fetch mapping='logical'> <entity name='person'> <attribute name='name' /> <link-entity name='address' from='addressid' to='addressid'> <attribute name='city' /> </link-entity> </entity> <

FetchXML - GeoCode Distance search by distance

醉酒当歌 提交于 2019-12-08 14:22:05
问题 I have an entity which has latitude and longitude fields. Now I have a address, I know the latitude and longitude of this address, I want to retrieve the records within 3 miles. How to do it using FetchXML? 回答1: You won't be able to do this directly via FetchXml as geocoding is not offered as a feature. This means you'll need to start rolling something by hand which will not be easy. This site has a pretty good overview of what you'd need to do (even if the language is different to what you'd

Report showing NO DATA when uploaded to crm online

 ̄綄美尐妖づ 提交于 2019-12-08 09:52:16
问题 When building a report in SSRS and viewing it in PREVIEW mode, my report is showing lots of data; however, when deploying it to CRM online 2013, this is what I am getting: This is CRM DYNAMICS ONLINE 2013 The data source is FetchXML and does not change I've removed all filters from the report and it still displays nothing. I'm using windows authentication My FetchXML data source is configured this way: Why is my report being generated fine in preview mode, yet when I upload it to CRM 2013

How to cast an Xrm.EntityCollection to a List?

☆樱花仙子☆ 提交于 2019-12-07 12:27:06
问题 Overview: I'm coding a FetchXML query to return users with disabled mailboxes in a Dynamics 2015 online CRM instance. Now I've come to a stage where the query results need to be bound to a ListView. (The project is using the Dynamics SDK 2015 libs.) In order to do this I've tried to cast the returned result which is an EntityCollection -> to a list. But the CRMSDKTypeProxy can't be found in my code for the cast. I was following this example's second answer in order to do the casting: Convert

Fetch XML report aggregate undocumented limit

99封情书 提交于 2019-12-06 09:33:05
I've been struggling with this one fetchxml report for Dynamics CRM online. The report is using aggregate to detect duplications based on certain fields. So, even though it is an aggregate report, the data set will return a lot of rows. Then I found out that the number of rows returned for aggregate fetchxml is limited to 5000. I understand that normal fetchxml report will return records more than 5000 but for aggregate report, this doesn't seem to be the case. In the resultset, the 'morerecords' attribute shows as '0' too. Is there any workaround for this (except to use normal fetchxml to get

FetchXML: get count of records based on a field of a linked entity

十年热恋 提交于 2019-12-06 07:29:05
I have a scenario where i want to get the count of people from an Entity who have multiple location address marked as current address in other linked entity. <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true" aggregate="true"> <entity name="client"> <attribute name="clientid"/> <attribute name="name"/> <attribute name="createdon"/> <order attribute="name" descending="false"/> <link-entity name="locationadd" from="clientid" to="clientid" alias="aa"> <attribute name="locationadd" aggregate="countcolumn" /> <filter type="and"> <condition attribute=

How to cast an Xrm.EntityCollection to a List?

你。 提交于 2019-12-05 21:19:40
Overview: I'm coding a FetchXML query to return users with disabled mailboxes in a Dynamics 2015 online CRM instance. Now I've come to a stage where the query results need to be bound to a ListView. (The project is using the Dynamics SDK 2015 libs .) In order to do this I've tried to cast the returned result which is an EntityCollection -> to a list. But the CRMSDKTypeProxy can't be found in my code for the cast. I was following this example's second answer in order to do the casting: Convert Entity Collection to Ilist where Entity Collection does not implement IEnumerable Question: Does