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, ...
Answered

Displaying information to distinguish D365FO environments

(0) ShareShare
ReportReport
Posted on by 150

Hi,

What are some of the options of getting information that can help distinguish f.e. Production VS UAT VS Dev environments in D365FO? It would be useful when generating reports in different environments so that they will not get mixed up.

While both jobs have code that could help identify environments for pre-D365 versions, looks like only the second one can still be used. Are there any other options?

static void Test1(Args _args)
{
	SqlSystem sqlSystem = new SqlSystem();
	LoginProperty loginProperty = sqlSystem.createLoginProperty();

	box::info('Database Name: '  loginProperty.getDatabase());
}

static void Test2(Args _args)
{
	box::info('Server Name-Database Name: '  SqlSystem::databaseBackendDesc());
}

Thanks!

I have the same question (0)
  • Suggested answer
    Satish Panwar Profile Picture
    14,671 Moderator on at
    RE: Displaying information to distinguish D365FO environments

    Hello,

    By default, the option is to start paying attention to URL. That's one.

    Another option is to use different banner on home page across environment.

    Another option is change the color theme for all users based on environment. It's under user options. see how i changed it to green.

    pastedimage1573684214831v1.png

    If set to blue, it looks like below.

    pastedimage1573684242346v2.png

    Most promising part is top left corner, see both screenshots above. This doesn't require any customization either.

  • Verified answer
    Sukrut Parab Profile Picture
    71,708 Moderator on at
    RE: Displaying information to distinguish D365FO environments

    If you want code options which pulls database related info , look at database information form(SysSqlStatus). It has bunch of method which pulls that information using SysSQLSystemInfo class.

  • silentsquirrel Profile Picture
    150 on at
    RE: Displaying information to distinguish D365FO environments

    Just as a doctor's prescribed.

    Thank you!

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 778 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
CU05031448-0 Profile Picture

CU05031448-0 468

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans