function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
dcarmen66dcarmen66 

determining sandbox instance name in Apex

Does anyone have a method for determining the name of the sandbox you're on (sand1 versus sand2) or if you're on a production instance? I can probably look at the username, but that doesn't seem like a solid method to me since you could technically change it to whatever you want. Any help is appreciated!