Communities Class
Get information about Experience Cloud sites in your org.
These methods are for Communities. All methods are static.
-
Get a list of Experience Cloud sites that the context user has access to.
-
getCommunities(communityStatus)
Get a list of Experience Cloud sites with the specified status that the context user has access to.
-
Get information about an Experience Cloud site.
Get a list of Experience Cloud sites that the context user has access to.
28.0
No
public static ConnectApi.CommunityPage getCommunities()
Type: ConnectApi.CommunityPage
Get a list of Experience Cloud sites with the specified status that the context user has access to.
28.0
No
public static ConnectApi.CommunityPage getCommunities(ConnectApi.CommunityStatus communityStatus)
communityStatus
Type: ConnectApi.CommunityStatus
communityStatus—Status of the Experience Cloud site. Values are:
LiveInactiveUnderConstruction
Type: ConnectApi.CommunityPage
Get information about an Experience Cloud site.
28.0
35.0
No
public static ConnectApi.Community getCommunity(String communityId)
- communityId
Type: String
ID of an Experience Cloud site. You can’t specify
nullorinternal.
Type: ConnectApi.Community