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 :
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

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans