Dynamics 365 - Xrm WebAPI
Microsoft has come up with latest Client APIs for Customer Engagement V9.0. These APIs stream line a lot of stuff we used to do with Javascript in earlier versions. Let’s look in depth into the APIs now. Create Record Update Record Delete Record Retrieve Record Retrieve Multiple Records Execute Each function has callback functions to handle success and failures. Create Record Syntax: Xrm.WebApi.createRecord(entityLogicalName, data).then(successCallback, errorCallback); Parameters: entityLogicalName – logical name of the entity data – JSON data successCallback - success function with parameters entityType and id(entityId) errorCallback – error function with parameters errorCode and message(errorMessage) Example: var data = { "name" : "Chandrahas" , "address1_address" : "Chandrahas Address" , ...