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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to add and access configuration values from Javascript

(0) ShareShare
ReportReport
Posted on by 167

Hey there,

I would like to store a configuration value in my crm environment that I can then access from JavaScript code. This configuration value would be an API key and it will be different in each crm environment we own. Ideally, we would like to deploy this script and not have to worry about managing the key manually each time.

What's the preferred way of accessing a config value like this in JS?

Thanks!

*This post is locked for comments

I have the same question (0)
  • Verified answer
    gdas Profile Picture
    50,091 Moderator on at

    Hi ,

    Ideally we all have in our projects some configuration  key value pair . For that I would suggest create an entity with key and value field. Using JavaScript web API request retrieve the key value where ever required.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans