xrm

Dynamics CRM 2011 Plugin Retrieve and Retrieve Multiple

寵の児 提交于 2021-02-07 20:30:56
问题 I'm looking for some working examples of retrieve message and retrieve multiple message plugin (Early binding). I've failed to find any successfully examples looking on line. I've checked the SDK, and various forums. Links or working examples would be greatly appreciated! What I'm trying to accomplish is the intercept and update of specific fields before presentation on the UI. I'm able to partially accomplish this via javascript which is the preferred method, but unfortunately the

Nullable filters in XRM where clause

为君一笑 提交于 2020-01-05 06:38:38
问题 I'm using the XRM (early bound) types in a WCF project so I have access to the CRM model and can use LINQ queries. But I've been running into a problem described here, it's the limitations on the where clause specific to XRM LINQ: where [clause limitations] The left side of the clause must be an attribute name and the right side of the clause must be a value. You cannot set the left side to a constant. Both the sides of the clause cannot be constants. Supports the String functions Contains,

CRM 2011 generated code using ICodeWriterFilterService fails to build

喜欢而已 提交于 2020-01-02 07:08:20
问题 Using the sample code at http://erikpool.blogspot.com/2011/03/filtering-generated-entities-with.html I have altered this so that GenerateEntity and GenerateOptionSet to have the code: return optionSetMetadata.Name.ToLowerInvariant().StartsWith("myprefix"); This generates the types including some enumerations for the optionsets. The actual implementation of the optionset in the entity doesn't use this however, but I get the following: [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("myprefix

Alternative to XRM Javascript calling webservice using ActiveX

眉间皱痕 提交于 2019-12-24 12:39:57
问题 I have a problem on CRM javascript when calling a webservice from browsers other than IE. See my code below for the web service call implementation. function RetrieveMultipleEntity(targetEntity, conditionAttributeName, conditionAttributeValue, targetId, targetAttribute) { // Prepare variables to retrieve the contacts. var authenticationHeader = GenerateAuthenticationHeader(); // Prepare the SOAP message. // var xml = (the SOAP message) var xHReq = new ActiveXObject("Msxml2.XMLHTTP"); xHReq

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

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

Could not load file or assembly 'netstandard, Version=2.0.0.0

天大地大妈咪最大 提交于 2019-12-23 05:22:30
问题 I'm getting the following error after deploying a .net framework 4.5.2 web api. Could not load file or assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.` This doesn't happen on all the endpoints, just one, where I'm using Microsoft.Xrm.Sdk. The thing is that it just started to happen, didn't update any packages. And worst, it doesn't happen locally, when debugging, even if building

Can't access Microsoft.Xrm namespace

旧时模样 提交于 2019-12-21 07:02:05
问题 I've downloaded CRM Dynamics SDK and keep it in a local directory. In my code, I'm using EntityCollection (amongst other classes related to Xrm namespace), which means that I need to add using Microsoft.Xrm.Sdk; . The problem is that during compilation I get errors saying that: The type or namespace name 'Xrm' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) So, I double check that the reference is made and, very accurately, I see that microsoft.xrm.sdk

Angular & Xrm WebApi: Cannot assign result to class variable

佐手、 提交于 2019-12-14 02:23:33
问题 I'm building a base Angular 8.2 webressource for Dynamics CRM, but I can't manage to assign a value to a class property. The code is the following : HTML <div> Hello {{loggedInUserName}} from {{ title }}.<br/> <br/> The first retrieved user from WebApi was {{ firstUserFullName }} </div> and the controller : import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'] }) export class AppComponent { title

How to call Action with parameter(s) using ExecuteWorkflowRequest in Dynamics CRM 2016?

不打扰是莪最后的温柔 提交于 2019-12-14 02:07:06
问题 Context I can successfully call Actions using ExecuteWorkflowRequest where the called action has no parameters: var request = new ExecuteWorkflowRequest { EntityId = myEntityId, WorkflowId = myWorkFlowId, }; service.Execute(request); where action is a simple workflow, with Category "Action". However I can not call Actions with parameters. What I've tried so far: string myParameter = "Hello"; var inputArgumentCollection = new InputArgumentCollection(); inputArgumentCollection.Arguments.Add(