dynamics-crm-2011

CRM 2011 Performing FetchXML group by on custom option set value

假装没事ソ 提交于 2019-12-10 15:54:23
问题 I want to be able to perform a FetchXML request that sums a value while grouping on a field that is a custom option set but I don't get the expected results. All that is returned is the summed up values, not the related custom option set value that it relates to so I have no idea what the returned values relate to. This is the fetchXML request which appears to be correct: <fetch distinct='false' mapping='logical' aggregate='true'> <entity name='opportunity'> <attribute name='estimatedvalue'

Dynamic CRM Plugin Registration Tool returns unsecured or incorrectly secured fault

不羁的心 提交于 2019-12-10 15:53:53
问题 I got an error while trying to register plugin using the plugin registration tool in the SDK. The problem comes out of nowhere since before today I always able to do plugin registration using the tool with ease. The error message is this: Unhandled Exception: System.ServiceModel.Security.MessageSecurityException: An unsecured or incorrectly secured fault was received from the other party. Inner Exception: System.ServiceModel.FaultException: An error occurred when verifying security for the

Microsoft Dynamics 2011 N:N LINQ query with where clause containing Guid

旧时模样 提交于 2019-12-10 15:39:41
问题 I have constructed a simple query to return a Users Team membership (N:N relationship). This works fine for all users, however when I add a where clause to restrict to a specific user it throws a fault exception (see stacktrace below). Strangely this works fine with "where Users.FullName.StartsWith("Alex")". Does the Dynamics CRM SDK LINQ implementation not support Guids in where clauses? Any advice? Example code using (var service = new OrganizationService("Xrm")) { using (var xrm = new

Why are all reference properties null in my CRM plugin?

纵然是瞬间 提交于 2019-12-10 14:54:54
问题 I'm writing a PostUpdate Plugin on the contact entity using early binding. Unfortunately, all properties which should represent 1:x relations are null. The code is pretty simple: * CRMcontext is the generated file via CrmSvcUtil.exe, * service is the IOrganizationService from LocalPluginContext: using ( var serviceContext = new CRMcontext(service) ) { // This works fine var contact = serviceContext.CreateQuery<Contact>().First(c => c.Id == context.PrimaryEntityId); // why is currency null

Could not load file or assembly 'Microsoft.Xrm.Client

淺唱寂寞╮ 提交于 2019-12-10 14:45:01
问题 I have created a plug-in in CRM. It’s registered successfully. Inside my plug-in I have created a web service with many functions. After successful calling of plug-in step I am getting error- System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Xrm.Client, Version=5.0.9689.2166, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies`. The system cannot find the file specified. To solve this issue I have created the New XRM.cs file from crmsvcutil

Crm dynamics custom action after clicking Invoice Paid

依然范特西╮ 提交于 2019-12-10 14:32:11
问题 In MS CRM When user clicks Invoice Paid, I need to notify external site that this invoice was paid Is this possible to achieve this? 回答1: Yes. There are two separate ways I can think of to do this: Hide and recreate the Invoice Paid button via the CRM's RibbonXML and use your own javascript methods to change the status of the invoice to "Paid" and also talk to the external site. This would work so long as the only way the Invoice's status is changed to Paid is via the Invoice Paid button.

Is it possible to query a soap endpoint via odata?

大城市里の小女人 提交于 2019-12-10 13:14:34
问题 I've got a SOAP endpoint: <organization URL>/XRMServices/2011/Organization.svc I would like to create an odata wrapper around this service, such that when navigating to http://myodataservice/api/Entities$?filter=AccountNumber eq '123123' It would retrieve data from the SOAP (wsdl) service, but it would allow the client to issue odata queries. Is it possible to query a SOAP service using ODATA? 回答1: You could create an OData wrapper around a SOAP endpoint but I don't think that it is worth it.

IOrganizationService correct way to update entities

落爺英雄遲暮 提交于 2019-12-10 11:39:51
问题 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 回答1: First of all both Update and Execute of an UpdateRequest produce the same

Dynamics CRM 2011 plugin in outlook only?

时光总嘲笑我的痴心妄想 提交于 2019-12-10 11:39:29
问题 We need to restrict some delete operations done automatically from Outlook towards CRM 2011 while we wait for a bug fix in a 3rd party addin. Is it possible to have a plugin in Dynamics CRM 2011 on-premise that either only executes for the Outlook client (offline not in use) or that checks in the execution if the plugin is triggered from Outlook? In CRM 4.0 there used to be a CallerOrigin property that gave at least some information on this, but that property is now seemingly only internal in

Dynamics CRM FetchXML Report Event for Plugin to Fire On

我是研究僧i 提交于 2019-12-10 11:34:45
问题 Is there an event that a plugin can be registered on when a FetchXML (or even SQL) report is run? RetrieveMultiple and Retrieve do not get fired! public void Execute(IServiceProvider serviceProvider) { IPluginExecutionContext context = (IPluginExecutionContext)serviceProvider.GetService(typeof(IPluginExecutionContext)); // The FetchXML report does not fire the plugin on RetrieveMultiple if (context.InputParameters["Query"] is FetchExpression) { IOrganizationServiceFactory factory =