dynamics-crm-2011

XRM setDisable() does not work on browsers other than IE

谁说胖子不能爱 提交于 2019-12-24 00:18:49
问题 There’s an error on our XRM form when it is opened from a browser other than IE. You can see the unhelpful message on the image link. The error is unclear so I debugged it, and it led me to an error on the javascript function on page load. It couldn’t use the XRM setDisabled() function properly: Xrm.Page.getControl("simpeg_tipelokasi").setDisabled(true); On IE it works and the field is disabled, but strangely it does not work on Chrome and Firefox. Can you help me figure out why it does not

Synchronize SQL Server databases

☆樱花仙子☆ 提交于 2019-12-23 22:12:23
问题 I have a new idea and question about that I would like to ask you. We have a CRM application on-premise / in house. We use that application kind of 24X7. We also do billing and payroll on the same CRM database which is OLTP and also same thing with SSRS reports. It looks like whenever we do operation in front end which does inserts and updates to couple of entities at the same time, our application gets frozen until that process finishes. e.g. extracting payroll for 500 employees for their

How to disable CRM 2011 Xrm caching?

耗尽温柔 提交于 2019-12-23 21:12:11
问题 I have problem with crm 2011 caching. I don't need it, but I don't know how to disable it. First I generate this: CrmSvcUtil.exe /codeCustomization:"Microsoft.Xrm.Client.CodeGeneration.CodeCustomization, Microsoft.Xrm.Client.CodeGeneration" /out:Outputcs /url:https://crmaddress/XRMServices/2011/Organization.svc /username:usr/password:pw /namespace:ns/serviceContextName:XrmServiceContext then I have the following code: private XrmServiceContext _crmService; public CrmWS() { CrmConnection

Retrieve Optionsets in Dynamics 2011

痞子三分冷 提交于 2019-12-23 18:51:33
问题 I am using this code to retrieve global optionsets var request = new RetrieveOptionSetRequest {Name = "OptionsetNameGoesHere"}; var retrieveOptionSetResponse =(RetrieveOptionSetResponse) DynamicsHandler._serviceProxy.Execute(request); var retrievedOptionSetMetadata =(OptionSetMetadata) retrieveOptionSetResponse.OptionSetMetadata; var optionList = retrievedOptionSetMetadata.Options.ToArray(); foreach (var optionMetadata in optionList) { Printout(optionMetadata.Label.LocalizedLabels[0].Label +

EntityName enumeration

对着背影说爱祢 提交于 2019-12-23 17:10:44
问题 In order to do queries to Microsoft Dynamics CRM, certain entity names must be passed to filter the results. However, using .NET Framework 4, I don't have the EntityName enumeration, although it should be public. Why is that? These are the enums I miss: http://msdn.microsoft.com/en-us/library/bb959317.aspx 回答1: Deprecated in CRM 2011. From the SDK: In earlier versions of Microsoft Dynamics CRM had an enumeration called EntityName that represented the entity type code for each entity. For

CRM 2011: How to Update record in a Create Plugin?

≡放荡痞女 提交于 2019-12-23 09:57:09
问题 I'm having serious problems in how to update the record that has just been created with some additional data. Case: I have an sms activity. On create an sms record. A plugin fires to actualy send the sms. A third party sms provider takes cares of the sending and returns a status string. Based on these string, a status for the sms must be updated. Here's some of my code: public void Execute(IServiceProvider serviceProvider) { IPluginExecutionContext context = (IPluginExecutionContext)

CRM 2011 Ribbon DisplayRule ValueRule check for null

半城伤御伤魂 提交于 2019-12-23 09:39:01
问题 Quick one, I don't see any direct answers out there so I thought I'd ask. (Here is the same question asked on the microsoft social site and it is unanswered as well) If I have a DisplayRule and a ValueRule in that, how can I check for null? This suggested solution below apparently doesn't work (according to the linked question): <DisplayRule Id="new.incident.form.IsNotRelatedToY.DisplayRule"> <ValueRule Field="YId" Value="null" InvertResult="true" /> </DisplayRule> Does it depend on the type

CRM 2011 - ITracingService getting access to the traceInfo at runtime

北城以北 提交于 2019-12-23 05:31:29
问题 I have some custom logging in my plugin and want to include the contents of my tracingService in my custom logging (which is called within a catch block, before the plugin finishes). I cant seem to access the content of tracingService. I wonder if it is accessible at all? I tried tracingService.ToString() just incase the devs had provided a useful overload, alas as expected I get name of the class "Microsoft.Crm.Sandbox.SandboxTracingService". Obviously Dynamics CRM makes use of the

Cannot edit or remove notes field

早过忘川 提交于 2019-12-23 05:04:07
问题 Dynamics CRM 2011 on premise. I cannot resize the notes field with the mouse (although I can move it around the form with difficulty) and the Change Properties and Remove ribbon buttons are disabled when I select the notes field and double clicking the notes field does nothing. What could be the cause? How can I find out what's wrong? 回答1: You need to remove the parent section (not the notes control it's self) and then add a new Notes control (Insert=> Notes) - this will then allow you to

datetime plugin crm 2011

若如初见. 提交于 2019-12-23 04:47:32
问题 Recently, I tried to get datetime value from custom field in Invoice entity throuhg plugin and found that it returns a day before the date displayed in CRM form. For incstance, I entered "7/1/2013" and in my C# the following code returns "6/30/2013" : EntityReference eRef = new EntityReference(localContext.PluginExecutionContext.PrimaryEntityName, localContext.PluginExecutionContext.PrimaryEntityId); var invoice = localContext.OrganizationService.Retrieve(eRef.LogicalName, eRef.Id, new