Category: Web API

Common Error – Bad request when using Web API CRM 2016

Hi, I have come across an error while using web API, I was trying to retrieve and update values from one of entities.   Below is the API request. var id =; var entity = {}; entity.statecode = 1; entity.statuscode = 2; var req = new XMLHttpRequest();“PATCH”, Xrm.Page.context.getClientUrl() + “/api/data/v8.0/quotes(” + id +

Continue reading