Getting Salesforce Organization IDThe Salesforce Organization ID is the unique identifier for your Salesforce Org identity. Use the steps below to find it. Salesforce Lightning: Log in to the Salesforce org.Click the Gear icon available at the top right corner of the screen.Select Developer Console.The Developer Console window opens.Go to the Query Editor tab.Enter the following query and click the Execute button. To get organization's ID (18-digit) and Name SELECT Id, Name FROM ORGANIZATION You can see the 18-digit organization ID as a result of the query.