Category Archives: Web API

Creating html web resource to show image attached in Notes using Web API


Some time back I wrote a post for retrieving image attached to notes using OData, as now for Dynamics 365 CE, we use Web API, so I am going to share how we can do it using Web API. Microsoft Dynamics CRM store all the notes and attachment in annotation entity. Most of the out of box entity used to… Read more »

Get Optionset Label using stringmap- Web API


Requirement: Get Optionset label based on optionset value using client side code. Solution: We have different option to implement this requirement. Earlier we wrote a post to get option set label using formatted values, today we are going to discuss how we can use stringmap to get optionset label using Web API. Stringmap entity store details about optionsets, it has… Read more »

Web API Sample Code Index

We have written couple of articles about using Web API, which is a new way to work with Dynamics CRM 2016 and Dynamics 365/CRM data and metadata. Web API implements OData V4 and can be used for any operation that we can be done using organization service. If you are new to Web API following index can help you in… Read more »

Dynamics 365 Web API enhancement Part 1

Dynamics 365 released some new enhancements to Web API. If you are new to Web API, we will suggest you to refer our earlier articles for Web API. In this release create and update Web API requests are enhanced to return entity object after record created or updated. Let’s understand this enhancement using following create request example. Let say we… Read more »

User Impersonation using Web API


In this article we are going to provide sample code for impersonating user using Web API in Dynamics CRM 2016. Impersonation is a process where user A can execute some business logic on behalf of user B. To use impersonation both user should have privilege to perform the action. For example if user A wants to impersonate user B while… Read more »

Calling Custom Actions using Web API

In our last web API articles, we discussed about using web API actions, today we are going to discuss about calling our custom actions using web API. If you are new to action you can refer this KB to know about actions. Let’s take a scenario that we want to design one action for our custom event entity to approve… Read more »

Using Web API Actions in CRM 2016

In our last Web API article we discussed about Web API functions, if you have not checked it yet, click here to know about web api functions. Today we are going to discuss about Web API actions. Similarly to function actions are also reusable piece of code and can bound or unbound. There are list of pre define actions, which… Read more »

Using Web API Function in CRM 2016 Part 2

In our last article we discussed about standard functions, today we are going to discuss Query Function. These functions are basically conditional operators, so there is conditional operator corresponding to every query function. we can get complete list of query function reference from here. We can use these functions similar to standard function, but we just need to make sure… Read more »

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 »