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

  • Piyush

    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