function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
System.Domain d = System.DomainParser.parse(URL.getOrgDomainUrl()); System.debug(d.getSandboxName());
Have look at http://developer.chatter7bk.com/forums?id=906F0000000AtLGIA0
Hope this helps,
Fred
If these answers helped you solve your problem, please, mark the question as Solved and kindly select the best one ;)
Thanks,
Fred
for more info : http://salesforceworld4u.blogspot.in/2015/12/how-to-get-sandbox-name-in-apex.html
You can use the new getSandboxName() method: You can get more information about this new method in the Apex Reference Guide here (https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_System_Domain.htm#apex_System_Domain_getSandboxName).
There are also so other new and useful methods like getMyDomainName().