Category Archives: Web API

Using Web API Function in CRM 2016 Part 1


If you are developer, you should be familiar with functions. It is a reusable piece of code which can be used to perform different operation based on their definition. CRM 2016 introduced Web API function which can be used to perform different CRM operations. Following are the two functions available in Web API: • Function • Query Function In this… Read more »

Getting Formatted values using Web API


In our earlier post we discussed how we can fetch data using retrieve and retrievemultiple request. We demonstrated how we can include different fields from primary entity. In this post we are going to discuss how we can fetch additional information (formatted values) and related entity properties. In our retrieve example we included single valued navigation property using _navigationpropertyname_value which returns… Read more »

Writing associate & disassociate request using Web API


Associate and disassociate request is used to link and unlink records having relationship. We can link and unlink records depending on their relationship type for example, We can link records having 1:N using update request (setting lookup). In our earlier sample we demonstrated how we can update lookup field using Web API. In this post we are going to discuss… Read more »

Writing Delete request using Web API

In this post we are going to discuss how we can write delete request using Web API for Dynamics CRM 2016. We can use http DELETE method in Web API for different delete scenario. For example let say we want to remove value of specific property (attribute) using Web API, so we can simply pass the property name with the… Read more »

Writing update request using Web API

In our earlier posts, we discussed how to write create,retrieve and retrievemultiple requests, today we are going to discuss about writing update request using Web API for Dynamics CRM 2016. You can refer our below earlier posts: Create Request Retrieve Request Retrievemultiple Request To update data , we have two below http methods are available: PATCH – This method is… Read more »

Writing create request using Web API


In our earlier posts we provided sample code to write retrieve and retrievemultiple request, today we are going to provide sample code to create entity record using Web API. Let say we want to create account record and want to set different fields of different types. There are mainly two things which is different in Web API while creating entity… Read more »

Writing retrieve method using Web API

With the release of Dynamics CRM 2016, organization data services is depreciated, so going forward we need to make sure to write scripting code using Web API only. Web API implements OData V4 and can be used for any operation that we can be done using organization service, so now we can use Web API to get both data and… Read more »