dynamics-crm-2011

WCF: Authentication Service or token-based security?

强颜欢笑 提交于 2019-11-30 04:00:25
问题 There's a Dynamic CRM instance on a server ("on-premises"). It will be used by a few sites that run on distant machines (another domain, another Active Directory). The communication between those sites and the CRM instance is done via a CRM proxy , a WCF service that sits near it (near CRM), handles requests, queries CRM etc. That WCF service is facing the Internet. Although secured communication channels aren't that necessary, authentication is. We cannot let random clients to use the

Retrieving list of Entities

杀马特。学长 韩版系。学妹 提交于 2019-11-29 23:06:53
问题 In CRM 2011 I can do the usual Create, Update, Delete operations using EarlyBoundEntities. I cant, however, seem to find an example of retrieving a list of entities using the same type of code. Is there a way of retrieving a list of items of type using EarlyBoundEntities? I've looked through MSDN and all I can find is how to retrieve an Entity if I know its GUID already. // Retrieve the account containing several of its attributes. ColumnSet cols = new ColumnSet( new String[] { "name",

CRM 2011: Getting entity with Javascript

帅比萌擦擦* 提交于 2019-11-29 21:54:24
I am working on some CRM 2011 Online customisations and I need to get an entity using javascript. The entity I need will be based on the ID value of another field (a Contact entity) - this Contact ID I can get fine. The entity I want is a custom entity. There may be multiple matches based on the Contact ID so I just want to get the first one in the list (order not important) So far I have looked into a few ways to do this... OData - I couldn't find enough examples on this as to what query expressions I can create, also I don't know if/how to make this work for custom entities FetchXML - I can

LINQ to Dynamics CRM Query filtering records locally

时光总嘲笑我的痴心妄想 提交于 2019-11-29 17:39:56
问题 I have written a Linq to CRM query using CRM 2011 RC (v5) LINQ-to-CRM provider. I have a locally declared List<T> which I want to join to a CRM entity and I want the query to be executed on the CRM Server. An example might help: MyObject myObject = new MyObject(); List<myAccount> myAccountsList = new List<myAccount>(); myAccountsList.Add(new myAccount() {AccountNumber = "123"}; myAccountsList.Add(new myAccount() {AccountNumber = "456"}; myObject.ListOfAccounts = myAccountsList; var

Server-side Fetchxml returns different results

一世执手 提交于 2019-11-29 16:18:46
One of our procedures lets users bulk-insert related records by picking a view and then hitting a ribbon button. The form is saved, a flag is set, and a plugin then does its job. We are using a subgrid with a view selector to let users pick or create their own views on the fly. Once a view is selected, the number of results (provided is lte 5k) is shown. When a plugin runs the very same fetchxml server side (Retrieve of userquery or savedquery, then Retrieve + FetchExpression), the results change. We get not only a different number of records but also some records are different. We concluded

FetchXml Query Returns Trimmed DocumentBody?

时间秒杀一切 提交于 2019-11-29 15:19:58
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. The problem ended up being an issue with the query itself. We had distinct="true" set on the fetch query, removing this attribute then caused the result to contain the entire documentbody of the image. Very strange. 来源: https://stackoverflow.com

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

主宰稳场 提交于 2019-11-29 15:06:54
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 entity item, I directly want to open the window of e.g. entity A item. Ribbon Button is no problem btw. I

Plugin with references not working on CRM 2011

旧城冷巷雨未停 提交于 2019-11-29 14:01:14
问题 I have created a plugin and used a reference to another project (DLL) I have created. The problem is when I try to run the plugin, I get a CRM error saying: Could not load file or assembly 'XXX, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a760feb9ec7271a9' or one of its dependencies. The system cannot find the file specified. Does anyone have any idea on solving this one? 回答1: You have to deploy the referenced assembly either to the GAC or merge it with your one (with ILMerge) See also

How can I make CRMSvcUtil.exe generate unduplicated, error-free early-bound option sets?

夙愿已清 提交于 2019-11-29 13:45:52
问题 I use Erik Pool's implementation of ICodeWriterFilterService and Manny Grewal's GenerateOption function as a model to filter out unwanted entities in the file that CRMSvcUtil generates. While Erik recommends returning true for the GenerateOptionSet method to generate enums for option sets, doing so duplicates any of the global option sets that are used by any particular entity (as mentioned in one of the comments on that post). To address this, I check to see if the option set has been

Retrieve rows in crm2011 subgrid with JScript

老子叫甜甜 提交于 2019-11-29 13:04:07
As an JScript newbie, I have a problem with a subgrid in MS CRM 2011. I have a form with a subgrid and in OnSave of that form, I want to loop over all the rows in the subgrid. How can I do this with JScript ? Or is it possible another way, ex plugin ? Thx Here is the sample code which you can do on save of the form var gridControl = document.getElementById('grdrelatedcontacts').control; for (var intRowNumber = 0; intRowNumber < gridControl.getRecordsFromInnerGrid().length; intRowNumber++) for (var intCellNumber = 0; intCellNumber < gridControl.getRecordsFromInnerGrid()[intRowNumber][3].cells