Communities Class

Get information about Experience Cloud sites in your org.

ConnectApi

These methods are for Communities. All methods are static.

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:

  • Live
  • Inactive
  • UnderConstruction

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 null or internal.

Type: ConnectApi.​Community