You need to sign in to do that
Don't have an account?
Heena
Getting ORG ID in Apex Class
Hi,
I wanted to know if it is feasible to access the org id of my salesforce org (without querying the Organization table) in an Apex Class. Something similar to what we do in VisualForce using the {!$organization.id} global field.
Thanks,
Heena
You could try
UserInfo.getOrganizationId
All Answers
You could try
UserInfo.getOrganizationId