How to get Sandbox name using Apex?

Sample Code:

UserInfo.getUserName().substringAfterLast('.').toUpperCase();

Cheers!!!

No comments:

Post a Comment