Search Results for: Web API

Calling Entity bound Actions using Xrm.Web API with Entity Collection

Requirement In this article we are going to discuss about calling entity bound action which have entity collection as parameter, we need to created this parameter from array list, while sending entity collection we need to send customer lookup as well, so let’s see how we can do that. Details Earlier, we discussed about calling out of the box actions… Read more »

Executing workflow from command button using Web API

Introduction In our earlier sample, we discussed how to call actions using Web API, today we are going to share sample code to execute workflow from command button using Web API. Requirement Let’s say we got some requirement to validate some logic on click of the command button and need to send email using workflow. Let’s see how we can do that…. Read more »

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 »

Web API Sample Code

Retrieving data based on primary id (Web API Retrieve Request) Retrieving data based on query (Web API Retrievemultiple Request) Creating entity record (Web API Create Request) Updating entity records (Web API Update Request) Deleting entity record (Web API Delete Request) Associate and Disassociate request (Web API associate and disassociate request) Getting Formatted Test for Option set Writing Web API Function… 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 »