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 :
Customer experience | Sales, Customer Insights,...
Suggested answer

How to use the environment variable in Javascript

(0) ShareShare
ReportReport
Posted on by 60

How to use it?

I have the same question (0)
  • Suggested answer
    Tamilarasu Arunachalam Profile Picture
    587 on at
    RE: How to use the environment variable in Javascript

    Hi DevCrmUser 

    There are entities named environmentvariabledefinitions and environmentvariablevalues, you can retrieve those entities using xrm.webApi.retrieve() functions to get and use those values from there.

    https://crmchap.co.uk/retrieving-environment-variable-values-via-javascript-microsoft-dataverse-power-apps/

    Please refer the above link

    If you found this answer useful, just like and mark as verified

    Thanks,

    Tamilarasu Arunachalam

  • DevCrmUser Profile Picture
    60 on at
    RE: How to use the environment variable in Javascript

    Hi Aruna,

    thanks I have used it and its working fine but I am not able to use it in other sync function

    Can u please see this link

    community.dynamics.com/.../use-async-function-in-sync-function-in-javascript

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 117 Super User 2025 Season 2

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 115

#3
Erin Lubben Profile Picture

Erin Lubben 66

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans