Search Results for: Web API

Retrieving Audit Data for a Specific Entity in D365 CE Using C#

Introduction In Dynamics 365 CE, the audit feature plays a pivotal role in tracking data changes for compliance, security, and analytical insights. Sometimes we need to get Audit data based operation and specific entity. This blog will provide you sample code to get data from Audit using C#. Understanding Dynamics 365 Audit History Dynamics 365 CE’s Audit History provides a… Read more »

Implementing Reason for Delete in D365 CE

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 »

Implementing Prompt dialog in D365 CE Part 2

Requirements Let’s say we have requirement where user can put opportunity on hold but before doing he needs to enter comment which should be saved in the opportunity. In the earlier part we discussed of creating prompt and updating opportunity, in this part we will discuss next items. Details We have our prompt page ready now we need to create… Read more »

Implementing Prompt dialog in D365 CE Part 1

Requirements Let’s say we have requirement where user can put opportunity on hold but before doing he needs to enter comment which should be saved in the opportunity. Details Let’s say we want to implement this requirement using prompt dialog where user can provide comments before setting opportunity on hold. To implement this requirement we have to do following things:… Read more »

Creating aggregated view using DataTable

Requirement Let’s say we want to show aggregated total of the records based on the grouping. let’s understand this with below example: In above screenshot group 1 as what we have in our entity and 2 is what we want to show on the dashboard, just want to show single entry for the duplicate record and calculate total. Details: I… Read more »

Download Word Document Template using JavaScript- Dynamics 365 CE

Requirement We got one requirement where we wanted to download Word Document based on the word template after validating some conditions. I am going to share sample code which can be used to download word document based on the template name. Solution We create a flyout button similar to existing word template flyout and hide out of the box flyout… Read more »

Completing Activity using Custom Ribbon Button

Requirement Sometimes we have requirement to change activity status using custom button. Here we are going to discuss how we can complete activity using WebAPI and action using a custom ribbon button placed on the subgrid. Solution We are going to complete activity using custom action and then we will be calling our custom action using WebAPI. We will add… Read more »

TypeError: Cannot read property ‘value’ of null

Problem Recently got one issue reported from old code where FetchXML request is executed with XrmServiceToolkit. It was throwing “TypeError: Cannot read property ‘value’ of null”. Solution We are already in process of upgrading all the old code to new Xrm.WebApi code but this was kind of showstopper as custom html web resource was not loading because of this issue…. Read more »

Filtering User Lookup based on the Team

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 »

Virtual Entity – New way of integration Part 1

We have seen this question many times in Dynamics CRM forums, “How can I show my custom db data into CRM forms with saving it into Dynamics CRM” and the possible options are to develop a custom control using scripting for example HTML or host a custom report/web page on iframe if you are working with CRM version