dynamics-crm-2013

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 get the CRM Entity Name from the Object Type Code of a RegardingID?

拟墨画扇 提交于 2019-12-06 07:20:53
So it seems that it is a fairly common question in CRM to try get the object type code when you have an entity name. But since I always have to do things the hard way, I have the reverse task: I have the object type code, and need to get the entity name. In general, the ultimate task is to take the the CRM regarding information on an email, and use it to query CRM for additional info. I can get the regardingID and the object type code easily. And for standard entities I can use a hardcoded lookup to get an entity name. But for custom entities, this won't work, as the object type code can be

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

How to fetch more than 5000 entities from CRM

只愿长相守 提交于 2019-12-05 20:57:51
问题 I'm querying MS Dynamics CRM Online from my console app: public EntityCollection GetEntities(string entityName) { IOrganizationService proxy = ServerConnection.GetOrganizationProxy(); string request = string.Format("<fetch mapping ='logical'><entity name = '{0}'></entity></fetch>", entityName); FetchExpression expression = new FetchExpression(request); var mult = proxy.RetrieveMultiple(expression); return mult; } This code only returns maximum of 5000 elements in mult.Entities . I know there

Missing trace logs in custom workflow activity for Real-Time workflow

断了今生、忘了曾经 提交于 2019-12-05 11:57:50
I've written a custom workflow activity against CRM 2013. You don't need to understand what it does. The problem I have is that despite instantiating the ITracingService , any tracing content that I generate using the Trace(...) method is obfuscated at runtime for real-time workflows only . In other words, if I run my workflow asynchronously and (deliberately) throw an Exception, I get to see the trace log in the corresponding system job record. If I simply switch the workflow to be "real-time" (synchronous) then I still get an exception and I still get any custom exception text, but of course

Is It Beneficial To Call ExecuteMultipleRequest From Within A Plugin?

耗尽温柔 提交于 2019-12-05 07:57:14
I know the ExecuteMultipleRequest is a huge performance booster when performing batch updates from outside of CRM. What I don't know is if it is beneficial to call it from within a CRM plugin. My current understanding is that the main performance gain from using the ExecuteMultipleRequest is in the actual SOAP messaging costs. So (for updating 5000 records) rather than sending 5000 separate Soap messages (each having to be serialized, authenticated, transferred, etc), that all have to be sent to the server, you can send just one message with 5000 records. But when called from a plugin, you're

CRM Advanced Find all the icons in wrong place

梦想与她 提交于 2019-12-05 07:46:15
I've just loaded up the advanced find and I cant click on half the icons/drop downs as they are all in the wrong place. It works fine on other servers and other machines. It appears as if its a CSS problem. Any Ideas Several users reported this issue, the cause is not clear yet, however these are the suggested steps: 1) Try with another browser 2) Clean the browser cache 3) if CRM site is inside the Internet Explorer compatibility mode list remove it 4) if CRM site is not inside the Internet Explorer compatibility mode list add it I had the same problem in Firefox. (In private mode, there was

Selenium Automation testing in crm 2015

戏子无情 提交于 2019-12-05 03:42:41
We are going to implementation Selenium automation testing for functional testing in CRM 2015 (Client suggestion , because it is open source tool), I did a lot of exploration in Google and different search engine for Selenium for CRM 2015. Could you advise/guide me how to use selenium in crm 2015 I wonder why isn't it answered yet, basically you can install the nuget package and choose a webdriver for the browser you want to automate. Then write a console application like using OpenQA.Selenium; using OpenQA.Selenium.IE; string crmUrl = "http://mycrm.url"; //create a ieAutomation IWebDriver

Microsoft Dynamics Crm Sdk - Is this query possible?

为君一笑 提交于 2019-12-05 02:21:53
问题 I am exploring the "QueryExpression" mechanism used to Retrieve data via the Dynamics CRM SDK, and I think I have hit a problem / limitiation with the SDK, but I would like to ascertain that for certain.. Given this desired SQL: Select C.firstname, C.lastname FROM contact C INNER JOIN customeraddress A on C.contactid = A.parentid WHERE ((C.firstname = 'Max' AND C.lastname = 'Planck') OR (C.firstname = 'Albert' AND C.lastname = 'Einstein')) OR A.Line1 = 'The secret moonbase' I cannot appear to

How to safely ignore an error in a Dynamics CRM plugin?

喜夏-厌秋 提交于 2019-12-04 20:07:18
I have a CRM plugin registered on Create (synchronous, post-operation) of a custom entity that performs some actions, and I want the Create operation to succeed in spite of errors in the plugin. For performance reasons, I also want the plugin to fire immediately when a record is created, so making the plugin asynchronous is undesirable. I've implemented this by doing something like the following: public class FooPlugin : IPlugin { public FooPlugin(string unsecureInfo, string secureInfo) { } public void Execute(IServiceProvider serviceProvider) { try { // Boilerplate var context =