Desrialize and Serialize Json in plugin without newtonsoft library

Often developers struggle with how to handle Json in Plugins, this blog is a way how to serialize and deserialize JSON in plugins without using Imerge or using the new plugin package. Using the method which involves only C# and the default system library, developers can easily serialise and deserialize JSON data.

In the example below, I have created a class that takes a generic T class and then using memory stream to read its value;

Continue reading “Desrialize and Serialize Json in plugin without newtonsoft library”

How to stop plugins from executing programmatically

You might have a situation where you would need to create or migrate records to dynamics using a console app or using any other platforms programmatically, and you don’t want to trigger plugins associated with the targeted entity. In this post, we would see as such a requirement can be met;

Here, I have created the below plugin and registered it to trigger on post Operation of entity Create, in this case, Account entity.

Continue reading “How to stop plugins from executing programmatically”

Read Data From Azure function request body from webhooks call Using Dynamics 365.

In this blog post, I will assume you know how to create an Azure function, publishing the function using visual studio and registering a webhook against the function. For more information regarding creating a function and calling the function’s endpoint, click here.

There are lots of blogs on calling azure functions using the plugin registration tool, but just a few dive in deeper about accessing the request body data in the azure function itself, so this blog post is about solely accessing the request body and retrieving the specific data you want. In this example, we want to retrieve data from an account record in dynamics, when it is created.

Continue reading “Read Data From Azure function request body from webhooks call Using Dynamics 365.”