Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

how to use unsecured config in plugin.

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

  • RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: how to use unsecured config in plugin.

    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.

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: how to use unsecured config in plugin.

    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>


  • Suggested answer
    abhishek_255 Profile Picture
    abhishek_255 1,612 on at
    RE: how to use unsecured config in plugin.

    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
    Kishor Kumar Profile Picture
    Kishor Kumar 3,702 on at

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans