Skip to main content

Notifications

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 165

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

  • Verified answer
    gdas Profile Picture
    50,091 Moderator on at
    RE: How to add and access configuration values from Javascript

    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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 54

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans