For the managed package runtime, to find the Id of a community, you must run a query in the Developer Console.
This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.
- In Lightning Experience, click the gear icon. In Salesforce Classic, click the user menu. In either case, select Developer Console from the menu.
- Click the Query Editor tab near the bottom of the Developer Console window.
-
Enter the following query in the Query Editor pane:
SELECT Id,Name FROM NetworkThe Ids and Names of all the Communities in the org are listed.
- Find the Name of the Community, then copy its Id.