How to get SalesForce OrganizationID for lightning:

Go to SalesForce Setup

Open Company Settings, then click on Company Information. And you can see the ID on Salesforce.com Organization ID field.

Did this answer your question?