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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

how to use unsecured config in plugin.

(0) ShareShare
ReportReport
Posted on by 150

string xxxx= "F5BE3CEC-81DE-46C5-BA32-49A61039BEE9";    passing this Guid as parameter to a method . i want use unsured Config .. how to get this string from unsecured config ?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Kishor Kumar Profile Picture
    3,710 on at
  • Suggested answer
    abhishek_255 Profile Picture
    1,614 on at

    Hi,

    you can access the value in plugin constructors. You can build your unsecure configuration in XML.

    Example: <?xml version="1.0" encoding="UTF-8"?>

    <guid>

     <value>F5BE3CEC-81DE-46C5-BA32-49A61039BEE9</value>  

    </note>

    //Use if you have both secure and unsecure configrations

    public PluginConstructor(string unsecureConfig, string secureConfig)

           {

    //Load the unsecure configuration in xml doc

    xmlDoc = new XmlDocument();

               xmlDoc.LoadXml(unsecureConfig);

            }

    //Use for unsecure config

    public PluginConstructor(string unsecureConfig)

           {

    xmlDoc = new XmlDocument();

               xmlDoc.LoadXml(unsecureConfig);

    }

    Thanks,

    Abhishek

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    Hi ,

    Please have a look  below reference  -

    https://sandeepkolarveettil.wordpress.com/2012/11/10/how-to-read-unsecure-configuration/

    XML should look like  below - 

    <?xml version="1.0" encoding="utf-8"> <Settings> <setting name="ReportExc_ReportExecutionService"> <value>localhost/.../ReportExecution2005.asmx&lt;/value> </setting> <setting name="GUIDVALUE"> <value>F5BE3CEC-81DE-46C5-BA32-49A61039BEE9</value> </setting> </Settings>


  • RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi navauyht,

    Please do remember to close this thread (and your previous threads) when you get the answer to your question by marking the helpful suggested answer. This will help other looking for the help on the same/similar issue.

    Hope you understand.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans