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
steve pattinsonsteve pattinson 

Comparison of org's

How to check which is sandbox org and which is production org by coding perspective.
Best Answer chosen by steve pattinson
NagendraNagendra (Salesforce Developers) 
Hi Steve,

As this is already explained clearly in salesforce stack exchange in the following thread please find the information below.

http://salesforce.stackexchange.com/questions/50/can-we-determine-if-the-salesforce-instance-is-production-org-or-a-sandbox-org

Please mark this as solved if it helps.

Best Regards,
Nagendra.P