Newer Version Available
Communities Class
Get information about Experience Cloud sites in your org.
Namespace
Communities Methods
These methods are for Communities. All methods
are static.
getCommunities()
Get a list of Experience Cloud sites that the context user has access to.
API Version
28.0
Requires Chatter
No
Signature
public static ConnectApi.CommunityPage getCommunities()
Return Value
Type: ConnectApi.CommunityPage
getCommunities(communityStatus)
Get a list of Experience Cloud sites with the specified status that the context user has
access to.
API Version
28.0
Requires Chatter
No
Signature
public static ConnectApi.CommunityPage getCommunities(ConnectApi.CommunityStatus communityStatus)
Parameters
communityStatus
Type: ConnectApi.CommunityStatus
communityStatus—Status of the Experience Cloud site. Values are:
- Live
- Inactive
- UnderConstruction
Return Value
Type: ConnectApi.CommunityPage
getCommunity(communityId)
Get information about an Experience Cloud site.
API Version
28.0
Available to Guest Users
35.0
Requires Chatter
No
Signature
public static ConnectApi.Community getCommunity(String communityId)
Parameters
- communityId
- Type: String
- ID of an Experience Cloud site. You can’t specify null or internal.
Return Value
Type: ConnectApi.Community