dynamics-crm-2011

Case insensitive QueryExpression

本小妞迷上赌 提交于 2019-11-28 09:25:47
问题 Is it possible to build a query with a ConditionExpression which is not case sensitive ? ConditionExpression condition = new ConditionExpression() { AttributeName = "lastname", Operator = ConditionOperator.BeginsWith, Values = new ObservableCollection<object>() { searchName } }; In this example I would like the search with searchName to be case insensitive. 回答1: I believe that this is a factor of the database collation that was chosen during install of CRM rather than a feature of

FetchXml Query Returns Trimmed DocumentBody?

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-28 08:57:29
问题 We have a FetchXml query with a couple of link entities, one of which is to the annotation entity in order to retrieve an attached image's base64 encoded content. This is so we can display an image inline on a page using data uris. The problem is that the image displays trimmed because the documentbody returned is actually cut off at 2,000 characters. 回答1: The problem ended up being an issue with the query itself. We had distinct="true" set on the fetch query, removing this attribute then

Override standard method called by double click event in CRM grid.

馋奶兔 提交于 2019-11-28 08:56:48
问题 Following situation in CRM 2011: My goal is to show several entities in one grid. Therefore we made a wrapper entity which links to the real entity (wrapper entity to entity A, B, C). When an item in A, B or C is created, also an wrapper entity item is created by a plugin. Like this I can have a grid, "mixing" all the entities, while in fact only show the items of the wrapper entity. But of course, if I do a double click or right click -> open in this grid, I don't want to open the wrapper

Equivalent to SQL IN clause

和自甴很熟 提交于 2019-11-28 03:38:34
问题 I've got an entity called new_trexmail with a string attribute called new_contextline. I'm trying to get a list of entities where new_contextlineis in a defined list. The following code fails with the error : NotSupportedException: Invalid 'where' condition. An entity member is invoking an invalid property or method. string[] test = new[]{"aaa", "hhh"}; var query = from n in New_trexmailSet where test.Contains(n.New_contextline) select n; I understand why this error is being thrown but I'm

The provided URI scheme 'https' is invalid; expected 'http' when calling web service

左心房为你撑大大i 提交于 2019-11-28 02:43:58
问题 I am trying to call a SharePoint web service from a CRM workflow using custom C# code. However when I run my code, I get the following error: The provided URI scheme 'https' is invalid; expected 'http'. Parameter name: via Here is the offending code: #region Set up security binding and service endpoint BasicHttpBinding binding = new BasicHttpBinding(BasicHttpSecurityMode.TransportCredentialOnly); binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Ntlm; binding.Security

How to get the option set from a field in an entity in CRM 2011 using crm sdk and C#

倾然丶 夕夏残阳落幕 提交于 2019-11-28 01:49:39
问题 How to get the option set from a field in an entity in CRM 2011 using crm sdk and C#? I just want to share with you guys a direct approach on getting the option set of a field in an entity. 回答1: The proper way to retrieve metadata information in Dynamics CRM is to retrieve only the information required. We should only retrieve the option set values based on the original question. Retrieving all the metadata for an entity when all the requirement specifies is the values for an Option Set is

crm 2011 how to hide/show the ribbon button with javascript

左心房为你撑大大i 提交于 2019-11-28 01:20:14
问题 I am trying to hide/show a button from CRM 2011 Ribbon on the bases of a condition defined in JavaScript . JavaScript function returns the true/false . So I wan't to change the XML to Hide/Show the button. I have tried to do it as below, but without any luck. Can anyone suggest me correct approach. Thanks in Advance <RibbonDiffXml> <CustomActions> <CustomAction Id="Email.Form.email.MainTab.Send.CustomAction" Location="Mscrm.Form.email.Send" Sequence="2"> <CommandUIDefinition> <Button Id=

CRM 2011 “$ is undefined”

浪尽此生 提交于 2019-11-28 00:47:59
I have created following code, and I have included this as web resource on the CRM 2011 form to be called on field onchange event of lookup field. Everything is working fine before the $.ajax({... line and then I have an error “ $ is undefined”. I am not very familiar with scripting so please help. function GetAddress() { var accountId; var dataArray; var accountRequestUrl; if (crmForm.all.regardingobjectid.DataValue != null) { dataArray = crmForm.all.regardingobjectid.DataValue; accountId = dataArray[0].id; if (typeof GetGlobalContext == "function") { var context = GetGlobalContext();

How to Execute FetchXML in CRM 2011 using a CRM 2011 webservice and JavaScript?

五迷三道 提交于 2019-11-27 18:17:26
问题 I want to execute FetchXML queries in a CRM 2011 environment using the CRM 2011 SOAP web services and JavaScript . I have found a number of articles like this one showing how to use the 4.0 web service that is still available in the 2011 environment, but I do not want to do this. This link seems to indicate that IOrganizationService.RetrieveMultiple can handle FetchXML. However, I do not want to use managed code for this. I've come across this link that shows essentially what I want to do in

Build Entity Form Url

对着背影说爱祢 提交于 2019-11-27 15:15:17
问题 a Microsoft CRM 2011 question. Given the following parameters: An entity schema name (i.e. opportunity, new_customentity) An entity guid A CRM organization base url (i.e. http://myhost.com/ORGNAME/) How can I build an url to point to the main (or "default") form of that record? I can tell a pattern in form urls, but some querystring params are pretty obscure and I wouldn't know how to reuse them for any other kind of entity. In addition, version 4.0 had specific URLs (/sfa/, etc) for system