Create Record using Web API
Here is a sample snippet which explains how to create entity record in JavaScript using Web API in Dynamics 365. To use Web API we have to use URL like below [Organization URI] +”/api/data/v8.1/” Sample Code for Javascript to retrieve account record. var req = new XMLHttpRequest() req.open(“POST”,encodeURI(clientURL + “/api/data/v8.1/accounts”), true); req.setRequestHeader(“Accept”, “application/json”); req.setRequestHeader(“Content-Type”, “application/json; charset=utf-8”); req.setRequestHeader(“OData-MaxVersion”,…
Read more