dynamics-crm-2011

How to access controls from a console

亡梦爱人 提交于 2019-12-12 08:15:23
问题 I tried to execute the following command from the console. var subject = Xrm.Page.ui.controls.get("subject"); That's the exact syntax I'm using in the web resource that I'm plugging in to CRM. However, I only got an error message saying that "unable to get property 'controls' of undefined or null reference". I do understand the message. What I want to know is two-fold. What syntax will work from the console ( F12 ) to refer to the stuff on the screen? Why doesn't it work the way I did? Where

How to get all populated columns from CRM using `QueryExpression` object?

江枫思渺然 提交于 2019-12-12 06:57:25
问题 I've asked a similar question before here and the answer solved my problem. However, now I'm getting the same problem as before but the answer doesn't work anymore due to change in conditions. Here's the query I'm running. I've checked that someField is set to something (it's a look-up field referring to an other entity by a guid). I get no entries in result (unless I switch the condition to "not equal"). That's probably due to the fact that the field isn't brought in. When i breakpoint the

MAking a section on CRM 2011 form required

孤人 提交于 2019-12-12 05:41:14
问题 I want to make a 'section' on the form required. Basically the sections has checkboxes. The user is supposed to check atleast one. How can this be done? 回答1: Inside your OnSave event you need to check if at least one checkbox is checked, if all are not selected you can stop the save event. To stop the save event you need to pass the context to your onsave event: The function will looks like: function onSave(executionObj) { // stop the save event executionObj.getEventArgs().preventDefault(); }

Showing Dynamics CRM 2015 out of box views on HTML pages hosted outside the CRM

我只是一个虾纸丫 提交于 2019-12-12 05:39:55
问题 I am trying to create a portal where we can access the records in crm. This portal will be hosted outside the CRM as a web application and not as a web resource in crm. In one of the pages i like to show the out of the box crm view. So i used a html page with an iframe in it .i specified the source of the iframe to crm view below is my iframe code Now when i open this html page directly via my web application the iframe i am getting the below error "This content can’t be shown in a frame

How to create a field of type “Customer” in Dynamics CRM 2011?

ぐ巨炮叔叔 提交于 2019-12-12 05:38:05
问题 There is a custom entity E . I would like to add a lookup field on E , a reference to a record of type Contact or Account (that is, a Customer/Party). For example, there is such a field on the Case entity, " customerid " (of type Customer). The alternative (which is what I would do on a 'plain' SQL database) would be to add two fields: ref_contact, ref_account. Thank you in advance! 回答1: you can't create lookup field to multiple entities in CRM. By default CRM has two specific multi-entity

Query the Description Value of a Picklist

倖福魔咒の 提交于 2019-12-12 04:45:59
问题 I am trying to get the value from the Description field of a picklist in CRM, this is what I am using to get the Label value, how would I change it to get the Description Value? RetrieveAttributeRequest request = new RetrieveAttributeRequest(); request.EntityLogicalName = "opportunity"; request.LogicalName = "country"; RetrieveAttributeResponse response = (RetrieveAttributeResponse)orgService.Execute(request); PicklistAttributeMetadata picklist = (PicklistAttributeMetadata)response

Obtaining the value of an option in a picklist

时光毁灭记忆、已成空白 提交于 2019-12-12 04:43:11
问题 I'm creating a phony instance of an entity beep . It has a required field of type picklist called pickaboo . First I omitted it but then the application started to lament throwing error messages at me due to some business logic demanding all the newly created instances of beep to have that field assigned. Entity entity = new Entity { LogicalName = "beep" }; Guid guid = proxy.Create(entity); proxy.Delete("beep", guid); I don't give a rodent's tail section about that demand because right after

Outer join with Linq causing “GroupJoin” error

試著忘記壹切 提交于 2019-12-12 04:25:14
问题 The following join projection is throwing the error, "The 'GroupJoin' operation must be followed by a 'SelectMany' operation where the collection selector is invoking the 'DefaultIfEmpty' method." I've run over a few permutations of changes, but haven't been able to figure it out. Thoughts? EDIT: It's looking more and more like this may be a Dynamics CRM issue . The Xrm models I'm accessing for data have been generated by the CRM SDK (CRM 2011). var q = left .GroupJoin(right, c => c.Id, cl =>

Dynamics CRM: Odata query that checks if the file attachment file name contains the unicode '#'

吃可爱长大的小学妹 提交于 2019-12-12 03:59:37
问题 Scenario: I have a custom entity with attachments in Dynamics CRM 2011. I want to query those attachments with file name that contains a hash tag ('#'). Say I have attached a few text documents. kdk#ie.txt, Report.txt, & k!ke.txt to the custom entity. Here are my results to my Odata query. Error Code: //ORGANIATION/XRMServices/2011/OrganizationData.svc/AnnotationSet?$filter=ObjectId/Id eq guid'{GUID HERE}' and IsDocument eq true and substringof('#',FileName) Return: Bad Request Because it is

CRM 2011: Custom Workflow Activity Output Parameters don´t show

梦想的初衷 提交于 2019-12-12 03:57:35
问题 everyone, I'm having a problem that does not appear in the output parameter list on the right side under "Look for" underneath "Local Values", I do not understand the problem or reason for not appear, since in terms of input parameters's okay. protected override void Execute(CodeActivityContext executionContext) { ITracingService tracingService = executionContext.GetExtension<ITracingService>(); //Create the context IWorkflowContext context = executionContext.GetExtension<IWorkflowContext>();