Posts

Duplicate Detection in Dynamics 365

Image
Hello Guys, In my previous blogs we have seen Plugins Series in Dynamics 365 where we covered Plugins development from the scratch. I hope you are able to develop and deploy dynamics plugin very easily. Today we will see Duplicate detection in Dynamics 365.  But before if you are new to our blog then do follow us to know more about Dynamics and Power Platform. Also if you like our blog then please comment and share this blog with your friends. As we are using Dynamics 365 for our business solution we have faced duplicate records many times. As being a developer we need to maintain integrity of data and we have used some JavaScript or Plugin implementation to avoid duplicate records creation in Dynamics 365. However to identify unique records in dynamics crm we have entity or record id which is in the form of GUID, but we have scenarios where we need to think for data contained by field. For example, Consider Employee entity which contains FirstName and LastName attributes...

Plugins in Dynamics 365 : Part 7

Image
Hello Guys, In my previous blogs we have seen how to implement Pre Image and Post Image. Today we will see how we can debug Plugin.  But before if you are new to our blog then do follow us to know more about Dynamics and Power Platform. Also if you like our blog then please comment and share this blog with your friends. In our blog  Plugins in Dynamics 365: Part 5  we have implemented Plugin trace log for tracing the logs if our plugin stop working. We can debug the plugin to resolve any error which are thrown by plugins. Follow below steps for implementing Plugin Debugging. Step 1:- Open Plugin Registration Tool and Login to your organization. Step 2:- Click on install Profiler button. Step 3:- Once it is installed it will look like this. Also in CRM Plugin-Profiler solution will be installed.  Step 4:- Now select the step which you want to debug and click on Start Profiling in menu. Step 5:- You will see one window. Select Exception and click on OK. Once you w...

Plugins in Dynamics 365 : Part 6

Image
Hello Guys, In my previous blogs we have seen how to implement tracing in plugin and Pre-Operation stage. Today we learn another important concept in Dynamics plugin and i.e. Pre Image and Post Image.  But before if you are new to our blog then do follow us to know more about Dynamics and Power Platform. Also if you like our blog then please comment and share this blog with your friends. While using dynamics 365, we are performing many operation like create, update, delete etc. There are many situation where you need to check for the data like what data is created while performing create operation, we want to check before and after value while performing update operation and many more. Consider a scenario of cash withdrawal machine which contains balance amount. Suppose we are having an account named A which is having 20000₹. Now we are making a transaction that is we are withdrawing 5000₹. Now we want to display balance amount in message also we want to keep previous amount value ...

Plugins in Dynamics 365 : Part 5

Image
Hello Guys, In my previous blogs i have shown how to register plugin for update message.Today we will see how to implement tracing in plugin also we will see Pre-operation stage.  But before if you are new to our blog then do follow us to know more about Dynamics and Power Platform. Also if you like our blog then please comment and share this blog with your friends. As being a developer, while developing plugin we need to ensure that our plugin is running as expected and it should not contains any errors. However whenever our application giving any error, we try to resolve it by debugging the application. Debugging a plugin in CRM is quite different and we will see how we can debug a plugin in our upcoming blogs. Now here we need to ensure our plugin is running as expected and that is without debugging. In this scenario we can implement tracing for logging the trace. The Plugin Trace Log feature keeps the trace log information in D365 which is slimier to the information you ge...

Plugins in Dynamics 365 : Part 4

Image
Hello Guys, In my previous blogs i have shown how to validate attributes in Pre-Validation Stage and how to register plugin.Today we will see how to register plugin for update message.  But before if you are new to our blog then do follow us to know more about Dynamics and Power Platform. Also if you like our blog then please comment and share this blog with your friends. In our previous blog we have seen how we can get the Context using service provider parameter of the Execute method.Well while working with Context and Target we need to keep some points in mind and those are: Context will be available for every plugin execution. It is not necessarily that Target will be available for every plugin execution. It depends on the plugin step configuration. However we can register a plugin for different messages but not all of them will have a Target. Ideally Create,Update and Delete messages are having a Target. To identify what will be there in Target, we need to identify the me...

Plugins in Dynamics 365 : Part 3

Image
Hello Guys, In my previous blogs i have shown plugin execution pipeline.Today we will be exploring more about plugins with some handy exercise also we will see how to register plugin in CRM.  But before if you are new to our blog then do follow us to know more about Dynamics and Power Platform. Also if you like our blog then please comment and share this blog with your friends. Today we will create one plugin which will validate some attribute of Contact entity. For example, Contact record should be having Account associated with it, Email and contact details should be validated,First Name and Last Name should not contain "Test" value.We will be working with the same project which we have created earlier in the series of Plugin Blog. Right click on the project and Add a new class file. Name this file as "ContactValidation". Inherit this class with base class named "IPlugin" and implement all the abstract methods. IServiceProvider interface contains one me...