Requirement Create attachment in Dynamics 365 CE from the stream which will be available in MultipartContent response. Details Let’s say are getting MultipartContent in HttpResponse. This response contains stream which we want to use to create and attach pdf file in notes. We can use following code: The code first checks if the HTTP response is not null and if… Read more »
Requirement In Dynamics 365 Customer Engagement (CE), managing data is crucial for maintaining a clean and efficient database. When we delete records, out of the box auditing feature can help to see audit information of the deleted record but what if we want to see the reason why this record was deleted?. With a simple customization, we can implement this… Read more »
Requirement While working on the Dynamics 365 CE implementation where we are using teams, sometime we want to filter user lookup based on the teams. Our requirement to check security type in our project entity if it is project based we need to filter user lookups based on the project teams which is created using project name, so let’s see… Read more »
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 »
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 »
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 »
In our last article we discussed new enhancement in Web API for create and update request. In this article we are going to discuss enhancement released to query metadata. Web API made it really simple to query your entity metadata now. If we need to query any entity metadata we can just specific entity logical name in our Web API… Read more »
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 »
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 »
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 »