My project is a CRM plugin, which is using third party web api to check the customer data in our database when users create customer in CRM online.
Now, I am using webclient to get the api result in plugin and it is working. But when I debug it using PRT, it throws out 'System.Security.Permissions.SecurityPermission' error.
After searching for some articles, I am not sure we should still use webclient to call third party apis, or we should use Webhook to do it. But seems no samples show webhook can return data to CRM plugin, only to send data to webhook.
My question is could the webhook replace the webclient part? Or how can I debug with this situation?
Thanks.