dynamics-crm-webapi

Accessing Dynamics 365 API using Postman

六月ゝ 毕业季﹏ 提交于 2020-04-30 08:29:08
问题 I am trying to make an API request against a Dynamics 365 API account using Postman. I have the following credentials but I do not know what headers to use to authenticate. I have the following ... Consumer Key Consumer Secret Redirect Uri Authorize Redirect URL HTTP Method = POST Access Token Service Endpoint What headers do I need to set in Postman to get access to the API? I have read articles and seen some examples but they all have different data than I do. For example in the screen

Accessing Dynamics 365 API using Postman

安稳与你 提交于 2020-04-30 08:27:44
问题 I am trying to make an API request against a Dynamics 365 API account using Postman. I have the following credentials but I do not know what headers to use to authenticate. I have the following ... Consumer Key Consumer Secret Redirect Uri Authorize Redirect URL HTTP Method = POST Access Token Service Endpoint What headers do I need to set in Postman to get access to the API? I have read articles and seen some examples but they all have different data than I do. For example in the screen

Retrieving Entity Metadata using web api

我只是一个虾纸丫 提交于 2020-01-14 03:56:05
问题 we have a requirement where we have to retrieve an Entity's Metadata. Exact requirement: Im reading a field value on a form which ia having "entity schema name". With that I need to get that Entity's primary key schema name. Is it possible? If so please help me. Eg: in that field if I enter "lead" , that web api should fetch me "leadid" and store it in another field. 2. If I enter "incident" , that web api should get me "incidentid" 回答1: You don't need do retrieve entity metadata for that,

Microsoft Dynamics CRM 365 calling an action via JavaScript asynchronously

旧街凉风 提交于 2020-01-06 06:31:51
问题 Is there a way to call an action via javascript without the use of third party scripts? I found this https://github.com/PaulNieuwelaar/processjs However, I cannot use third party libraries. UPDATE: Here is some sample code that demonstrates an asynchronous call to an action via JavaScript. A important point to remember is to make the last parameter of the open method of the request to true . req.open(consts.method.post, oDataEndPoint, true); // plugin public class RunAsync : CodeActivity {

Associate primarycontactid to Case-Dynamics CRM web API

核能气质少年 提交于 2020-01-05 04:03:28
问题 I am trying to create a case and associate a contact in the primarycontactId field. I am using an alternate key to look up the contact as below. POST https://xxxxx.crm.dynamics.com/api/data/v8.2/incidents HTTP/1.1 Accept: application/json OData-MaxVersion: 4.0 OData-Version: 4.0 Content-Type: application/json; charset=utf-8 Host: xxxxxx.crm.dynamics.com Content-Length: 161 { "title": "case101", "primarycontactid@odata.bind": "https://xxxxx.crm.dynamics.com/api/data/v8.2/contacts(xxi_xxx=

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

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

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

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":