dynamics-365

Why is deep insert failing when trying to create a Contact and Account entities through a Connection in Dynamics WebAPI

风流意气都作罢 提交于 2019-12-22 12:36:18
问题 I have been able to create a contact in Dynamics WebAPI using a payload similar to this ... { "firstname": "asd", "lastname": "asd" } I have been able to create an Account entity in Dynamics WebAPI using a payload similar to this ... { "name":"SOLE TRADER ORG", "emailaddress1":"otbpostman1@post.com", "telephone1":"07188888" } and a Connection entity between the two as follows ... { "record1roleid@odata.bind":"/connectionroles(1EB54AB1-58B7-4D14-BF39-4F3E402616E8)", "record2roleid@odata.bind":

In DataFactory, what is a good strategy to migrate data into Dynamics365 using Dynamics Web API?

99封情书 提交于 2019-12-20 06:09:24
问题 I need to migrate data using DataFactory to Dynamics365. The Dynamics365 connector is not enough for me since one of the requirements is to only update those attributes that have been modified since last migration - not the whole register. The other requirement is that sometimes we have to 'null' values in destination. I believe that I can do that by generating a different JSON for register and migrate them using the Web API. I thought in putting these calls in an Azure Functions, but I

How to customize Menu tab (Ribbon/command bar) in Microsoft Dynamics CRM?

旧时模样 提交于 2019-12-13 08:57:10
问题 I'm recently developing a CRM application using Microsoft Dynamics 365. How do we customize the menu tab in Microsoft CRM as shown in attached Figure? Please let me know the steps to do so. Please check snap here. 回答1: Download the Ribbon Workbench from Develop1. The download is a managed CRM solution which you import into your CRM environment. The solution provides a great and intuitive interface for editing ribbon bars throughout your CRM organisation. 来源: https://stackoverflow.com

System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary: DYNAMICS 365 Plugin

て烟熏妆下的殇ゞ 提交于 2019-12-13 02:36:53
问题 When I run a Unit Test for my plugin I get the following Exception being Thrown: Message: Test method Plugins.Tests.UnitTest1.TestUnitPlugin threw exception: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. The following link will give you the stack trace: Stacktrace Even when I deploy & register my plugin to the online instance, I would get the same message!! My Plugin code looks like this: using System; using System.Collections.Generic; using

Dynamics CRM: Currency field on the contract is locked (disabled) and cannot be unlocked

瘦欲@ 提交于 2019-12-13 02:18:41
问题 Microsoft Dynamics 365 Version 1612 (8.2.2.1862) (DB 8.2.2.1862) online I want to be able to set the Currency field on the Contract. However, on the main Contract form the field is locked and cannot be unlocked. In the form editor the field is not disabled but the padlock appears next to it. Running Xrm.Page.getControl('transactioncurrencyid').setDisabled(false) on the client has no effect for this field, i.e. the field remains locked. I have noticed that there is a Mapping on the contract

Unable to Create a systemuser in Dynamics CRM 365 online

折月煮酒 提交于 2019-12-11 18:14:35
问题 On update field of contact record I want to create a systemuser(user) in dynamics crm 365 online.but I’m getting error like "usersettings With Id = 5fe33120-607f-e811-a95c-000d3af29269 Does Not Exist" This is the below code I'm trying to create a user Entity getEntity = (Entity)context.InputParameters["Target"]; string str = getEntity.Attributes["new_isaeon"].ToString(); if (str != null && str == "True") { // http://localhost:51625/api/Users Entity sysuser = new Entity("systemuser"); sysuser

D365 FO Simple Query for expiring contract

微笑、不失礼 提交于 2019-12-11 15:51:25
问题 I need to create simple query which will show all contracts which will expire in next 3 months. I know how to do that with SQL, but how to do that in Visual Studio when I create query. I added data source Contract table. Added range. Column where is date about expiring is VALIDTO. So, something to write up in value, or how to do that ? 回答1: Solved with two ranges on VALIDTO column. Used (MonthRange(0,3)) with (Day(0)) formulas. 来源: https://stackoverflow.com/questions/56889905/d365-fo-passing

Error: Not able to retrieve after create in plugin

末鹿安然 提交于 2019-12-11 12:16:07
问题 I am executing a plugin synchronously postOperation. I create an entity using IOrganizationService.Create . This works, I get a GUID and I can see that the record exists in the CRM. Right after this, I am trying to retrieve the same record using same IOrganizationService and the GUID returned by the create call: public void Execute(IServiceProvider serviceProvider) { ITracingService tracer = (ITracingService)serviceProvider.GetService(typeof(ITracingService)); IPluginExecutionContext context

How to Asynchronously Show a Create New Button On a CRM Sub Grid?

烈酒焚心 提交于 2019-12-11 07:32:13
问题 I need to hide the "Add New" button on a sub grid until certain criteria are met. Calling Xrm.Page.ui.refreshRibbon will trigger my JS function defined in my Enable Rule, but I can't get the + button to show up. Is this unsupported, or is there some methodology to get this to work? 回答1: Seems like you have to do few extra trick. Refreshing the subgrid command bar You will find that when the form is loaded, if there is a value in the attribute you have referenced in your enable rule, the Add

Restrict user access from “main area” Dynamics 365 on prem

吃可爱长大的小学妹 提交于 2019-12-11 03:37:47
问题 We've created a new "App" which is the first app so far in our solution. The idea is that a group of users will have access to this app only and they will no longer have access to the "main area" of the application. Some of the forms for certain entities will look differently than the others etc. (With "main area" I mean the "normal" area that exists by default more or less). So, it was easy to give this group of users access to the new app because they have a particular security role and we