dynamics-crm-2011

Not all columns retrieved on `new ColumnSet(true)` in a plug-in

﹥>﹥吖頭↗ 提交于 2019-12-11 18:33:41
问题 I'm building the following query. For some reason, it doesn't bring to me all the fields. I've checked the spelling and when I assign values to those field, I even switched the name, leading to an exception. So I know for sure that they exist and are used. I'm adding a pre-image to the update-step with all data, just to be sure. QueryExpression request = new QueryExpression { EntityName = "myLogicalName", ColumnSet = new ColumnSet { AllColumns = true }, Criteria = { Filters = { new

How should i know which property comes under InputParameters Based on Message Request in Dynamics crm Plugin?

半世苍凉 提交于 2019-12-11 17:48:08
问题 CreateRequest Message is named Target,which is of type Entity.But not all Request contain a Target property is of type Entity. For Example AssociateRequest InputParameter contains Relationship is of type Relationship. For Example AddItem message will return which property?How should I know there are so many messages in plugin registration tool.how should I know which message has what property it will return. it was only possible with Debugging? 回答1: I agree there so many messages, but I had

Set and get Notes field in CRM 2011 Javascript

假装没事ソ 提交于 2019-12-11 17:39:30
问题 I need to set the Notes field to the Notes field value in other entity in CRM 2011 form. So, I need to know how get and set the Notes field using Javascript. And I'm not able to get the name of Notes field inside the section as you can seen in the below image. 回答1: OK there are two approaches required here. @Philip_Rich pointed out that annotations for existing records are created as soon as they lose focus and can therefore be queried. You should be able to find existing code for this quite

Remove note's autosave functionality by adding other entity's notes on form in CRM 2011

谁说我不能喝 提交于 2019-12-11 16:49:22
问题 In CRM 2011, notes get automatically created and attached to main record on lost focus event. Requirement is to remove this auto save functionality. Only till main form is open user should be able to edit notes. And newly added notes should only get saved once main form is saved. For example, if user add one note and closes the browser or do not save the main form, then that note should not get attached to main record, new note should get discarded. I was thinking following solution: create

Unable to access window.parent's Xrm.data.entity object from a opened frame web resource Dynamics CRM 2011

我们两清 提交于 2019-12-11 14:33:19
问题 I have a html web resource that has <script src="ClientGlobalContext.js.aspx" type="text/javascript"></script> in the head. It is a frame that pops up when a user clicks reject in the ribbon. When I try to click on a reject button in the frame (not the ribbon), it throws the error "Error: Unable to get property 'entity' of undefined or null reference" I know my window.parent.Xrm.Page.context.getServerUrl() is working because the lookup frame is populated from our server. I have tried the

How to open HTML web resource in modal dialog

一曲冷凌霜 提交于 2019-12-11 14:29:50
问题 I created some HTML web resource. How can I open it in modal dialog after clicking on some ribbon button? Thanks! 回答1: I would suggest to use http://crmvisualribbonedit.codeplex.com/ to edit your ribbon. On your button, set the action to url and link to your webresource. In the win mode setting choose Model Dialog. This is what I have in the address field on the action: http://server/organization/WebResources/new_htmlpage new_htmlpage is the name of the webresource. Here is the

Get Id of user currently logged into MS Dynamics CRM 2011 Online

巧了我就是萌 提交于 2019-12-11 13:47:09
问题 Is there a way to retrieve/identify the user that is currently logged into MS Dynamics CRM 2011 Online? What i'm trying to accomplish here is kind of like the facebook login except with MS Dynamics. I need to somehow detect whether the user has logged into the MS Dynamics website. If the user is logged into the MS Dynamics website, i'll have to grab the UserId and authenticate it with Kentico CMS. I've tried messing with the WhoAmIRequest, but unfortunately it needs a credential to properly

Create and download an text file in a client-server system

六月ゝ 毕业季﹏ 提交于 2019-12-11 13:16:05
问题 in ms dynamics crm I will create over an own ribbon button an text file with some contact attributes. This file I would like to save or download to the client machine, so the user can work with it. How can i do this? I'm going crazy while testing a lot of different ways. create with javascript an string and try to downlaod it with data uri. dosen't work var content = "test"; window.open("data:text/octet-stream," + encodeURIComponent(content)); try with silverlight (localy I could create a

Microsoft Dynamics online: change field's data type

一曲冷凌霜 提交于 2019-12-11 13:09:13
问题 What are the steps for changing Field's (not custom) data type? I go to Customizations -> Customize the System -> Entities -> Activity -> Fields -> Subject. I need to change Type from "Single Line of Text" to "Option set". How do I do that? I have Visual Studio 2012 and Microsoft Dynamics CRM SDK but I'm not experienced at it. EDIT: Do I need to retrieve FormXml from SystemForm entity? 回答1: You can't change the type of the field after its creation (you can only change the properties, for

How can I Update fullname in COntact in CRM

做~自己de王妃 提交于 2019-12-11 12:40:21
问题 I want format of fullname like Title + First Name + Last Name.but this type of format is not avalilable in System settings.so,I just want to update fullname not first name or last name.How can I achieve this requirements. 回答1: The answer is you can't change the format of full name in the database aside from the formats CRM defines as options. But, you do have two options: Create a Select plugin that updates the value of the full name on the entity (if you're using early bound, the property