Dynamics 365 Plugin : How to call a web request

0

Hello everyone my name is Taniguchi.

I trying to retrieve information from itb360 database using a get request consuming an url but in the plugin when i try to get the response its shows me an error but i used the same code in console application and worked just fine do i have to do some configuration to be able to do webrequest in dynamics 365 plugin?

mycode:

Uri url = new Uri("https://dbenterprise.itb360.com.br/v1/token/Empresa/28017459000117");

        WebRequest request = WebRequest.Create(url);
        request.Method = HttpMethod.Get.Method;
        var response = request.GetResponse();

the error on get response line:

System.Security.SecurityException HResult=0x8013150A Message=Falha na solicitação da permissão de tipo 'System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

c#
c#-4.0
dynamic
plugins
httpwebrequest

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0