web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Dynamics 365 Plugin : How to call a web request

(0) ShareShare
ReportReport
Posted on by 250

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("">dbenterprise.itb360.com.br/.../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'.

I have the same question (0)
  • Suggested answer
    Inogic Profile Picture
    682 on at
    Hi Taniguchi,
    The problem is when you try to run the “Web Request” code in plugins and try to access the token, you will get a security exception because the online plugins run in sandbox mode.
    You can refer to the below blog for more details:
     
    Hope this helps!
  • Suggested answer
    Anks27 Profile Picture
    1,085 on at

    Hello TaniSantos,

    Open the plugin registration tool and make sure that the isolation mode is set to none not sandbox.

    Signed, Sealed and Delivered.

     

    Don't forget to help the community by Verifying the answer and Like it if your question has been answered. It will let others know that the topic has verified answer.

     

    Thanks & Regards,

    Ankit Shah(MCT-Microsoft Certified Trainer)

     

    Follow me on below

    LinkedIn:-  https://linkedin.com/in/dynamicpower101/

    Twitter:-    https://twitter.com/Dynamicpower101

    Facebook:- https://facebook.com/DynamicPower101/

    Telegram:- https://t.me/dynamicpower101

  • TaniSantos Profile Picture
    250 on at

    Thanks so much for replying, the plugin registration is not allowing to set isolation mode to none only to sandbox, do you know what can i do ?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 170 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 61

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 52 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans