The Salesforce Organization ID is the unique identifier for your Salesforce Org identity. Use the steps below to find it.

Salesforce Lightning:

  1. Log in to the Salesforce org.
  2. Click the Gear icon available at the top right corner of the screen.
  3. Select Developer Console. The Developer Console window opens.
  4. Go to the Query Editor tab.
  5. Enter the following query and click the Execute button.

    To get organization's ID (18-digit) and Name


    SELECT Id, Name FROM ORGANIZATION
    CODE


You can see the 18-digit organization ID as a result of the query.