You need to sign in to do that
Don't have an account?
![pareshjena pareshjena](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
How to get Sandbox/environment name in trigger
We are building some logic in apex trigger to find out which environment (sandbox/production) we are in. How to get the value of this.
For example: when we are in our sales force sandbox UI, it shows "Force.com Sandbox: SFDPOC". The string "SFDPOC" is the environment name. How to get this value "SFDPOC" in a trigger?
Probably best to use: