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 :
Finance | Project Operations, Human Resources, ...
Suggested answer

Get the type of environment in X++ code

(1) ShareShare
ReportReport
Posted on by 148
Hi,
 
Is there any way that I can get the type of environment (DEV, UAT, Production) in the X++ code? 
 
If yes can you share the code snippet?
 
Thanks.
I have the same question (0)
  • Suggested answer
    Layan Jwei Profile Picture
    8,060 Super User 2025 Season 2 on at
    Get the type of environment in X++ code
    Hi Shahzaib,


    This links provides x++ code, did you check it out?
    https://nunomaia.github.io/lcs,%20lifecycle%20services/rest%20api/2021/12/26/lcs-api.html

    Thanks,
    Layan Jweihan
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future
  • Suggested answer
    Judy Profile Picture
    Microsoft Employee on at
    Get the type of environment in X++ code
    Hi, 
     
    Please check the blog to use X++ identify if a D365 F&O environment is production, Sandbox, etc.
    Please wait if others on the forum can suggest on this.
     
    Best Regards,
    Judy

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 628 Most Valuable Professional

#2
CU05031448-0 Profile Picture

CU05031448-0 578

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 570 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans