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 = Xrm.Page.data.entity.getId(); var entity = {}; entity.statecode = 1; entity.statuscode = 2; var req = new XMLHttpRequest(); req.open(“PATCH”, Xrm.Page.context.getClientUrl() + “/api/data/v8.0/quotes(” + id +

Continue reading
Advertisements