dynamics-crm-2013

Set custom Workflow to run daily in CRM 2013

孤者浪人 提交于 2019-12-08 08:42:57
问题 I have written a custom work flow which is registered on account entity . I want this workflow to run daily to create tasks. the workflow works fine when i register it on record created . but it does not trigger when i schedule it for every day. like after 24 hours it should trigger automatically by itself any one can help plz 回答1: Two workflows: Parent who runs on creation and triggers child. Recursive child who triggers the custom workflow activity. Parent workflow definition. Child

VS 2012 CRM Explorer can't connect to Dynamics CRM 2013

会有一股神秘感。 提交于 2019-12-08 05:02:37
问题 UPDATE: We've determined this to be the result of an issue in our CRM2013 environment, although we haven't been able to identify the issue. We installed a new CRM2013 instance, migrated our organization and solutions, and everything works as expected in the new CRM2013 environment. ORIGINAL POST: I'm unable to connect to an on-premises instance of Microsoft Dynamics CRM 2013 using CRM Explorer in Visual Studio Pro 2012. When Connect to Dynamics CRM Server is selected from the Tools menu the

setDisable for all fields of a Section in a Crm Form

两盒软妹~` 提交于 2019-12-08 03:45:23
问题 I need to disable a section if a value from other field is true, normally I would do: function disableSection1(disabledStatus){ Xrm.Page.getControl("section1field1").setDisabled(disabledStatus); Xrm.Page.getControl("section1field2").setDisabled(disabledStatus); Xrm.Page.getControl("section1field3").setDisabled(disabledStatus); Xrm.Page.getControl("section1field4").setDisabled(disabledStatus); } but i have to do this for many sections, so I am looking for a function like this: function

& Symbol causing error in XML Code

旧巷老猫 提交于 2019-12-07 21:15:40
问题 I have the following XML code that is filtering my Lookup Field in my Crm Dynamics form. The filter is used following the data that is entered into the Account Field. However, the account field can contain the & symbol, and when it does, an error occurs stating that the XML is not well formed. Does anyone have any solutions to the problem? function accountcontact() { Xrm.Page.getControl("new_contactlookup").addPreSearch(function () { addcontactlookup(); }); function addcontactlookup() { var

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

Is It Beneficial To Call ExecuteMultipleRequest From Within A Plugin?

若如初见. 提交于 2019-12-07 02:50:54
问题 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

IOrganizationService correct way to update entities

拟墨画扇 提交于 2019-12-06 15:40:36
I'm having a look at the best way of updating/retrieve entities from within C#. I've had a read through the MSDN documentation but unsure which way to go/when to use either method. So, my question: Should I be using: IOrganizationService.Update() and update the entity directly; or IOrganization.Execute() and create an update request And if the answer is 'it depends', what situation warrants which method? Thanks First of all both Update and Execute of an UpdateRequest produce the same result. The main difference is that an UpdateRequest can be batched using the ExecuteMultipleRequest With the

VS 2012 CRM Explorer can't connect to Dynamics CRM 2013

眉间皱痕 提交于 2019-12-06 15:06:21
UPDATE: We've determined this to be the result of an issue in our CRM2013 environment, although we haven't been able to identify the issue. We installed a new CRM2013 instance, migrated our organization and solutions, and everything works as expected in the new CRM2013 environment. ORIGINAL POST: I'm unable to connect to an on-premises instance of Microsoft Dynamics CRM 2013 using CRM Explorer in Visual Studio Pro 2012. When Connect to Dynamics CRM Server is selected from the Tools menu the connect dialog presents and operates normally until the Organization is selected, at which point the

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

六月ゝ 毕业季﹏ 提交于 2019-12-06 14:21:26
问题 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) { }

Lambda expression with .Where clause using Contains

霸气de小男生 提交于 2019-12-06 07:32:59
问题 When connecting to CRM 2013 is there a smart way to create a lambda expression that gets the entities who's GUID are in a List. This code breaks on the Where clause and gives the error: Invalid 'where' condition. An entity member is invoking an invalid property or method. Code: private List<UserInformationProxy> GetContactsFromGuidList(List<Guid> contactList) { var result = _serviceContext.ContactSet .Where(x=> contactList.Contains((Guid) x.ContactId)) // this line breaks .Select(x => new