web
You’re offline. This is a read only version of the page.
close
Skip to main content
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

I have the same question (0)
  • 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Aric Levin - MVP Profile Picture

Aric Levin - MVP 2 Moderator

#2
MA-04060624-0 Profile Picture

MA-04060624-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans