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)

Where to store CRM Dynamics custom code configuration settings

(0) ShareShare
ReportReport
Posted on by 365

I am creating custom CRM Dynamics code that saves data to an external database when specific entities have been updated or created in CRM. Where the best place to put the connection string?

Is it possible to use a web.config to store the connection string? This would be perfect?

I do not want to use the secure/unsecure configuration "parameters" for each plugin step as I will have to copy and paste the connection string multiple times.

 

 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Rajkumar Rajaraman Profile Picture
    on at

    Hi,

    Refer this link:

    blogs.msdn.com/.../storing-configuration-data-for-microsoft-dynamics-crm-plug-ins.aspx

    mscrmtools.blogspot.in/.../storing-custom-configuration-settings.html

    Hope this helps.

    Regards,

    R.Rajkumar

    "Please mark my answer as verified if you found it helpful"

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi,

    Create a custom entity in crm and store your config details in that entity. Read it from there in your plugin using fetchxml or queryexpression. It is easy to manage as well.

  • Royal King Profile Picture
    27,686 on at

    You could use action to store all the configuration data. This provides easy to manage and edit configuration data. You can check the below post that provides steps to add/mamnge configuration data like connection strings.

    blog.sonomapartners.com/.../crm-2013-custom-actions-the-end-of-configuration-entities.html

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