dynamics-crm-365-v9

Setting null for single-valued navigation property using Xrm.WebApi

我怕爱的太早我们不能终老 提交于 2019-12-30 11:29:26
问题 We are in the process of remediation, re-engineering old JS web resources for latest D365 v9 sdk changes w.r.t Client scripting API improvements & deprecation. When rewriting the web api methods using Xrm.WebApi , we end up with this blocker. The scenario is setting null to lookup, and tried the below code: var data = { "abc_relatedentity@odata.bind": null }; Xrm.WebApi.updateRecord("abc_entity", abc_entityid, data).then(successCallback, errorCallback); This is throwing error: "The 'odata

Setting null for single-valued navigation property using Xrm.WebApi

倾然丶 夕夏残阳落幕 提交于 2019-12-30 11:29:26
问题 We are in the process of remediation, re-engineering old JS web resources for latest D365 v9 sdk changes w.r.t Client scripting API improvements & deprecation. When rewriting the web api methods using Xrm.WebApi , we end up with this blocker. The scenario is setting null to lookup, and tried the below code: var data = { "abc_relatedentity@odata.bind": null }; Xrm.WebApi.updateRecord("abc_entity", abc_entityid, data).then(successCallback, errorCallback); This is throwing error: "The 'odata

Dynamics 365 V9 web resource get context

时光毁灭记忆、已成空白 提交于 2019-12-25 03:27:50
问题 I used this article to open a popup window when clicking on a button in the Lead form. In the onclick event of a button in this popup window, I want to set the value of a field in the parent form. How can I do this in V9, since xrm.page is deprecated? I would like to know the equivalent of window.parent.Xrm.Page.getAttribute("subject") The line above has a value of null in the lead form. EDIT: in the link posted by Arun in the comment down here, it is written that "although Xrm.Page is

How to hide Assistant/Activities tab and Attach button in Notes section on Social Pane in Dynamics 365?

对着背影说爱祢 提交于 2019-12-24 14:06:09
问题 Has anyone had an experience modifying the Social Pane in Dynamics 365? Hiding the Assistant and Activities Tab Hiding the Attach button in the Notes Tab Googling shows unsupported way by accessing and hiding by DOM manipulation. Has tried Security roles, Ribbon Workbench but still tabs and Attach button are showing. The Notes form also cannot be customized. We tried also the Intelligence Configuration by following this: https://docs.microsoft.com/en-us/dynamics365/customer-engagement/sales

POST/GET request from postman to Microsoft Dynamics crm 365

*爱你&永不变心* 提交于 2019-12-23 02:29:08
问题 I was trying to create entity using Web API. So using my instance url, client_id, client_secret I can successfully generate access token and refresh token. But whenever I try to make any post request using that access_token, I get 401(unauthorized) status. I was trying to create new entity from postman like this: url: https://myurldomain.crm5.dynamics.com/api/data/v9.0/accounts headers: POST /api/data/v9.0/accounts HTTP/1.1 Host: myinstancename.crm5.dynamics.com Content-Type: application/json

Dynamics 356 v9 - use executionContext.getFormContext() with HTML web resource

旧街凉风 提交于 2019-12-10 16:37:43
问题 Any ideas how we can we use executionContext.getFormContext() with an HTML web resource? only method that seems to work is parent.Xrm.Page which is now deprecated. 回答1: We are still using parent.Xrm.Page and parent.Xrm.Utility , since the replacement is not yet announced. You should plan to use the new client APIs mentioned in the Replacement Client API column instead of the deprecated ones. The deprecated client APIs will continue to be available and supported until they are officially

How to get formContext in Ribbon command of Dynamics 365 9.0

独自空忆成欢 提交于 2019-11-30 07:05:22
In Dynamics 365 9.0 there was quite a big change regarding how to access form attributes and controls - instead of Xrm.Page namespace, we should pass executionContext to a function and get formContext using getFormContext() function. This is working fine and I had never a problem with using this approach. However I did not figured out yet how to properly access formContext in functions that are called from Ribbon. The documentation says that this should be really straightforward: https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/customize-dev/pass-dynamics-365-data

How to get formContext in Ribbon command of Dynamics 365 9.0

ε祈祈猫儿з 提交于 2019-11-29 07:07:43
问题 In Dynamics 365 9.0 there was quite a big change regarding how to access form attributes and controls - instead of Xrm.Page namespace, we should pass executionContext to a function and get formContext using getFormContext() function. This is working fine and I had never a problem with using this approach. However I did not figured out yet how to properly access formContext in functions that are called from Ribbon. The documentation says that this should be really straightforward: https://docs