Activity Forums Salesforce® Discussions How do we determine that user is in Sandbox or Production using Salesforce Apex?

  • Piyush

    Member
    August 22, 2019 at 3:26 AM

    Hi Prachi,

    You can check it with the following API call:-

    SELECT Id, InstanceName, IsSandbox, Name, OrganizationType FROM Organization

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos

Salesforce Admin Certification 2020 Questions Explained with References - Part II

Video in

How to prepare and pass Salesforce Admin Certification with Practice Exam Questions 2020 practice questions and answers for the Salesforce Administration Salesforce Certified Admin Exam Questions Salesforce Administrator Certification Exam…