You need to sign in to do that
Don't have an account?

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!