Due to the SANDBOX isolation mode in all D365 CRM online versions, registering an external assembly will give an error.
This error will occur when we trigger
an Event to which our Plugin using external DLL is registered.
Scenario-
From Plugin, we need to call an API Endpoint, send request and receive response against it.
Before sending the request parameter we need to serialize the class object and after receiving response deserialize the response object, for which we used Newtonsoft.json
As Newtonsoft.json is an external assembly we need to merge it with plugin assembly before registering it in Plugin Registration Tool.
Refer – Call Azure Function from Dynamics 365 via Plugin – Part 5.1
Follow the below steps to merge the same.Microsoft.Xrm.Sdk.dll
Microsoft.Crm.Sdk.Proxy.dll
Microsoft.IdentityModel.dll
No comments:
Post a Comment