Tag Archives: Xrm save

CRM 2013: JavaScript – Retrieve record using OData/REST endpoint without jQuery

The CRM 2013 SDK states that jQuery in form scripts and ribbon commands is not recommended. So how do I RETRIEVE (or create, update, delete) attribute values for a related record using JavaScript? It turns out that using Ajax and the OData endpoint to manipulate the XMLHttpRequest object is the key.

In addition, I shall make use of several new XRM methods, including “Save”,  “alertDialog” and “getClientUrl” method. So, here we go!

Continue reading CRM 2013: JavaScript – Retrieve record using OData/REST endpoint without jQuery

Advertisements