fetchxml

Is that possible to make cast field in fetchxml?

放肆的年华 提交于 2020-01-11 10:08:32
问题 Is that possible to make cast field from identifier to string in fetchxml? I have this query: select * from table1 t1 left outer join table2 t2 on t1.stringId=CAST( t2.id as varchar(40)) where t2.id is null and t1.childid is not null and this row t1.stringId=CAST( t2.id as varchar(40)) can't make in fetchxml while field "stringId" is string but it's value is GUID and I want to have that equality. In fetchxml: <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true"

How to migrate or move activites between contacts in Dynamics CRM

纵饮孤独 提交于 2020-01-06 05:14:28
问题 Two different contacts had the same email address, after an automatic record creation rule was applied, CRM associated email activities to the wrong contact. I've updated the email address value in one of the contacts (the wrong contact) but it has activities that do not belong to it and I need to move them to the right contact. How can move activities between two contacts? I cannot merge the contacts as they are legitimate contacts. I did try to update the partyid field of the activityparty

Dynamics CRM - How to get the second page of a fetchXml query beyond the 5000 elements?

[亡魂溺海] 提交于 2020-01-06 04:23:47
问题 I'm having a small issue with Dynamics CRM 2016 and fetchXml. In the CRM I have around 35K users. Since it seems Dynamics is limited to retrieve a maximum of 5000 elements per round, I needed to use the pagingCookie feature to retrieve the second page and so on. For example, to retrieve the second page of these records (from user 5001 to 10000) I had to retrieve first the users from 1 to 5000, obtain the paging cookie and relaunch the process with this cookie. My question is: This requires

How to get audit record details using FetchXML

白昼怎懂夜的黑 提交于 2020-01-04 03:50:43
问题 Using this query im able to retrieve audit records in Microsoft Dynamics CRM online <fetch version="1.0" > <entity name="audit" > <all-attributes/> </entity> </fetch> But this lacks the info about what happened in the operation, more specificly the old value and new value of the column changed. This data is shown when i use the audit tool in the settings of the regular interface, so the data is present. Does anyone know how to fetch it? Is there another entity im missing? 回答1: Audit records

Fetch XML report aggregate undocumented limit

半世苍凉 提交于 2020-01-02 10:12: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

QueryExpression vs. FetchXml CRM2011

梦想与她 提交于 2019-12-30 02:24:28
问题 We found out that Linq for CRM 2011 is horribly broken - it seems to have gotten in without any QA performed on it. An indicator as how badly broken the provider is a query like .Where(x => x== "b") works but this .Where(x => "b" == x) might not depending on some preceding condition like a join statement. I have actually had to rewrite parts of the query provider and am enjoying better luck with the crap I put together. However this can't go on, there are still other issues and I'm not paid

Server-side Fetchxml returns different results

白昼怎懂夜的黑 提交于 2019-12-29 09:08:32
问题 One of our procedures lets users bulk-insert related records by picking a view and then hitting a ribbon button. The form is saved, a flag is set, and a plugin then does its job. We are using a subgrid with a view selector to let users pick or create their own views on the fly. Once a view is selected, the number of results (provided is lte 5k) is shown. When a plugin runs the very same fetchxml server side (Retrieve of userquery or savedquery, then Retrieve + FetchExpression), the results

Understanding Link-entity in FetchXML

廉价感情. 提交于 2019-12-29 07:18:12
问题 I understand <link-entity> is used to do joins, but can you help me translate the following into english? <entity name = "example"> *insert a bunch of attributes* <link-entity name="providercertification" from="providerid" to="vendorid" alias="aa"> I understand <link-entity> is used for joins, but the join type is not specified, so that is throwing me off. How does the link-entity work if no join type is specified? Is it automatically an inner join? Also, which column does the from part apply

Dynamics CRM 2015 Applying custom subgrid with FetchXML (getElementById(“selectedGrid”) returns null)

独自空忆成欢 提交于 2019-12-25 04:33:39
问题 I am using Microsoft Dynamics CRM 2015 on-premise version. I am applying a custom FetchXml to a subgrid using JavaScript. The issue here is document.getElementById(“selectedGrid”) returns null. I read articles says that this method is not supported anymore in 2015 Version. My question: is there any alternative to this method? 回答1: This works for me, and in fact I've been able to use document.getElementById as well. If you're adding an event or something (and hooking it to onLoad), just make

Select a percentage of records using CRM 2011 Dynamic Entity

江枫思渺然 提交于 2019-12-24 05:05:50
问题 I'm developing service which consumes CRM 2011 data via dynamic entities (as in, Microsoft.Xrm.Sdk.Entity, the late-binding method). I'm deliberately not using Xrm.cs method (early binding) in an attempt to keep my solution generic. Also, I want to avoid connecting to a CRM database directly (e.g. EDMX) as this would stop my solution being usable for a hosted CRM (e.g. with no direct DB access). I have the following (simplified) requirement, I'm really struggling with the selection criteria: