dynamics-crm-2016

How to recover my plugins data from plugin-registration in crm?

别说谁变了你拦得住时间么 提交于 2019-12-31 04:45:29
问题 When updating an assembly to plugin registration - in step 2 : select the plugin and workflow activities to register , if not all plugin selected they will be deleted with their steps and images from plugin registration, is there a way to recover a plugin that was deleted, is there an XML or a file that helps recover the steps and images? 回答1: If you have earlier solution backup or take the latest solution by including the Sdk message Processing Steps from other environments & import to get

Object doesn't support property or method 'addOnKeyPress' in Dynamics CRM 2016

纵然是瞬间 提交于 2019-12-25 08:44:28
问题 I am using same code snippet as in this walk-through for adding addOnKeyPress event to name field of account form. But its pops out Object doesn't support property or method 'addOnKeyPress' as error but nothing get done. I tried but nothing get done. I would like to hear from experts. Update: Adding Code function suggestAccounts() { // List of sample account names to suggest accounts = [ { name: 'Blue Yonder Airlines', code: 'A06' }, { name: 'City Power & Light', code: 'A07' }, { name: 'Coho

Convert Single line text to Multiline text (MS CRM 2016)

拟墨画扇 提交于 2019-12-25 07:48:57
问题 I would ask about capability to change the filed datatype from Single line to Multiline without delete this field. Actually the CRM form editor is disable the data type option set after filed created, so I think I have to change the data type via Database but I need to know if is it possible to do that, and if we change the data type from the database is it will change the filed from single line shape to multiline in the form.? because my CRM is online so I need confirm is it possible, to ask

Sending message from plugin to form not working for empty values

牧云@^-^@ 提交于 2019-12-25 07:47:03
问题 I'm sending a custom message from a plugin (that does some validation) back to the CRM form. Here's my plugin code that executes on pre-Update and post-Create: //GetAccounts is a simple method to return accounts based in specified crtitias. //In Update event, it will add an extra filter to exclude the current account... const string DupeFieldName = "new_approval_status"; if (xrmObjects.PluginContext.PrimaryEntityName == Xrm.Account.EntityLogicalName && xrmObjects.PluginContext.Depth == 1 &&

XRM context in HTML webreource in MSCRM 2016

半城伤御伤魂 提交于 2019-12-24 16:18:12
问题 I am facing a problem when HTML web resource which gets popped up on clicking of some ribbon button. It does not have the Xrm context as it is unable to load the file clientglobalcontext.js.aspx Here is what I have included in source of HTML: src="../ClientGlobalContext.js.aspx" and also used this src="ClientGlobalContext.js.aspx" This is working in my current CRM11 version but it does not get load in CRM16 online. Is there any other way to load this file in a popped up html window or it is

How to fetch list of documents related to the entity record using CRM APIs?

﹥>﹥吖頭↗ 提交于 2019-12-24 09:24:18
问题 Following is the exact scenario in our CRM implementation. We have created a few custom entities, and enabled "Document Management" for them. Now, we need to get list of all documents (with their full URIs) for each entity record using CRM REST APIs. I tried to look into the entities, but not sure which entity to query in order to get list of documents (and their URIs) associated with an entity record. Our documents are getting stored over document library in the SharePoint site. Could anyone

Dynamics Crm online 2016 set opportunity statecode

随声附和 提交于 2019-12-24 08:24:37
问题 I am looking for the C# (console application) syntax required to set the statecode of an opportunity to "not active" or "closed". In fact I would also like to know where I can find the available values for statecode, since in the field properties I see that the datatype is "Status", but I don't see the available values. Thank you in advance 回答1: Valid state codes for Opportunity: statecode - statuscode 0 (Open) - 1 (In Progress), 2 (On Hold) 1 (Won) - 3 (Won) 2 (Lost) - 4 (Cancelled), 5 (Out

You should specify a parent contact or account error in Dynamics CRM

旧巷老猫 提交于 2019-12-24 08:16:48
问题 I am trying to create a new incident through postman in Dynamics CRM but I am getting the following error: You should specify a parent contact or account Which I assumed that is asking for customerid to be sent so I added it on postman like: { "description": "Test", "ed_egresssenttorentadmin": true, "note['_customerid_value@odata.bind']":"f686f062-e542-e811-a955-000d3ab27a43", "note['_ownerid_value@odata.bind']":"a7b7fcb7-a64e-e811-a96f-000d3ab384bc" } but I still get the same error, any idea

Set CRM Lookup Values with WebAPI

牧云@^-^@ 提交于 2019-12-22 10:44:38
问题 Who had done CRM Web API calls to update CRM entities with Lookup values from another Entity. I'm trying to set a Lookup Value to another Entity within CRM using WebAPI, CRM 2016. It works if I disable the Lookup value but once I enable the Lookup value, I receive Bad Request. Below is my code in LinqPad so it does work. void Main() { using(var webClient = new WebClient()){ webClient.Credentials = new NetworkCredential("Username", "Password", "Domain"); webClient.Headers.Add("OData-MaxVersion

How do I connect a server service to Dynamics Online

自作多情 提交于 2019-12-22 09:48:08
问题 I am modifying an internal management application to connect to our online hosted Dynamics 2016 instance. Following some online tutorials, I have been using an OrganizationServiceProxy out of Microsoft.Xrm.Sdk.Client from the SDK. This seems to need a username and password to connect, which works fine, but I would like to connect in some way that doesn't require a particular user's account details. I don't think the OAuth examples I've seen are suitable, as there is no UI, and no actual