dynamics-crm-2011

Random JavaScript Errors in CRM 2011 Outlook Client

回眸只為那壹抹淺笑 提交于 2019-12-05 18:18:18
We are receiving some JavaScript errors that are happening in the Outlook Client only. They are sporadic, and difficult to reproduce. They tend to come from the Order form. Examples include: "Can't execute code from a freed script..." from the Address Lookup on the Order "this.$B_1' is null or not an object" from "_static/_controls/ribbon/ribbon.js" (trying to run a report) Has anyone seen these issues or have a good way to troubleshoot? This has to do with your JavaScript. I've seen this in upgrades mostly. Unfortunately it is painful to troubleshoot. If you are using setTimout, look at that

MS Dynamics CRM 2011 SDK - Update entity record using late-binding

此生再无相见时 提交于 2019-12-05 18:17:49
does anyone know how to save changes to a late-bound entity using the SDK for Dynamics CRM 2011? This is what I've tried: // retrieve and modify a pet... // (This part works) Guid findId = new Guid("6CA57D73-30CC-E111-B155-00505630052F"); ColumnSet attributes = new ColumnSet(new string[] { "name", "foodtype" }); // try to retrieve // (this also works) pet = xrm.Retrieve("pet", findId, attributes); if( pet!=null ) { Console.WriteLine( String.Format( "Retrieved pet {0} successfully!", pet["name"].ToString() )); // update attributes pet["foodtype"] = "Seaweed"; // (from here doesn't seem to work)

Assembly must be registered in isolation error

非 Y 不嫁゛ 提交于 2019-12-05 17:48:56
I'm trying to load a custom workflow activity onto a crm server. I loaded the project onto the server and have been using the CRM Plug-in Registration Tool. The server is CRM2011 and thus supports .NET 4.0 activities. However, when I press the "Register" button (After the assembly has successfully loaded onto the Tool) the following error occurs: `Unhandled Exception: System.ServiceModel.FaultException'1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Action failed for assembly 'ExecuteSQLJob, Version=1.0.0.0,

How to check the total number of contacts in CRM 2011?

随声附和 提交于 2019-12-05 16:17:41
The method used right now is to check the size of the array read from DB. As long as there are other operations performed on it, such a piggy-back is fine. However, I'd like to know if there's a more direct method to query for the number of contact existing. I'm coding in C# but JS would be to get to know too, just in case. QueryExpression query = new QueryExpression { EntityName = "contact", ColumnSet = new ColumnSet(true), }; EntityCollection response = organizationService.RetrieveMultiple(query); IEnumerable<Entity> entities = response.Entities; You can use the TotalRecordCount on response

Dynamics CRM saving Entity Changes - Getting Errors

社会主义新天地 提交于 2019-12-05 16:11:01
I'm really scratching my head with this. I'm trying to use the Dynamics CRM SDK to update an account record. No matter what I try, it's failing. Here goes. Account sampleAccount = CrmAccount.GetAccountsBySubmissionCode(crmService, "ERZZUP").Single<Account>(); sampleAccount.Name = "AMC Edited"; crmService.Update(sampleAccount); Gives the error: EntityState must be set to null, Created (for Create message) or Changed (for Update message) XrmServiceContext ctx = new XrmServiceContext(crmService); Account sampleAccount = CrmAccount.GetAccountsBySubmissionCode(crmService, "ERZZUP").Single<Account>(

Integrating Octopus Deploy and Dynamics CRM

前提是你 提交于 2019-12-05 11:11:21
I'm using an on premises version of CRM 2011, which I'm about to begin developing against. We're using Octopus Deploy with some other sites. It would be great if there was a way to import CRM Solutions using a powershell script or wcf service, rather then someone manually navigating to the site and go through the motions.(we have dev,test and prod environments) I can't seem to find a non UI method of doing this online. Can anyone suggest a better solution then using the UI? lazarus You can import solution programmatically using ImportSolutionRequest class. Check this link 来源: https:/

How to Authenticate to CRM 2011?

别等时光非礼了梦想. 提交于 2019-12-05 10:58:19
I would like to build a simple web site where a customer can place orders and view products. This data is my Microsoft Dynamics CRM 2011 Environment. This data is customer specific, so i need information about the user which is logged in. User credentials are stored in CRM 2011. With these credentials users may login to this new custom website. They should not have access to the crm environment itself. How should i setup authentication for this web site? Can i just query the user information in crm 2011, should I setup a ADFS application or something else? We just implemented something similar

CRM 2011 SDK transaction

泄露秘密 提交于 2019-12-05 09:56:45
How to create transaction using crm 2011 sdk and XrmServiceContext? In next example 'new_brand' is some custom entity. I want to create three brands. Third has wrong OwnerID guid. When I call SaveChanges() method, two brands are created and I've got exception. How to rollback creating of first two brands? Is it possible without using pluggins and workflows? using (var context = new XrmServiceContext(connection)) { SystemUser owner = context.SystemUserSet.FirstOrDefault(s => s.Id == new Guid("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX")); // create 3 brands new_brand b1 = new new_brand(); b1.new

Is it possible to call Dynamics CRM 2011 late-bound WCF Organization service without the SDK - straight customized binding?

為{幸葍}努か 提交于 2019-12-05 08:21:03
问题 I'm trying to implement a pure WCF scenario where I want to call Dynamics CRM WCF service without relying on the SDK helper classes. Basically, I would like to implement federated authentication against Dynamics CRM 2011 using only native WCF support from the .net framework. The reason I'm doing this is that I would like to port this scenario later-on to BizTalk. I've successfully generated proxy classes with SvcUtil, but the part of the policies and security assertions are not compatible

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