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!