Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

ExternalManagedAccount Class

Get externally managed accounts.

Namespace

ConnectApi

ExternalManagedAccount Methods

These methods are for ExternalManagedAccount. All methods are static.

getCommunitiesExternalManagedAccounts(communityId)

Get externally managed accounts available to the context user across all Experience Cloud sites.

API Version

50.0

Requires Chatter

No

Signature

public static ConnectApi.ExternalManagedAccountCollectionOutput getCommunitiesExternalManagedAccounts(String communityId)

Parameters

communityId
Type: String
ID for an Experience Cloud site, internal, or null.
Regardless of the ID specified, this method returns externally managed accounts available to the context user across all Experience Cloud sites.

getCommunitiesExternalManagedAccounts(communityId, includeMyAccount)

Get externally managed accounts available to the context user, including the context user’s account, across all Experience Cloud sites.

API Version

53.0

Requires Chatter

No

Signature

public static ConnectApi.ExternalManagedAccountCollectionOutput getCommunitiesExternalManagedAccounts(String communityId, Boolean includeMyAccount)

Parameters

communityId
Type: String
ID for an Experience Cloud site, internal, or null.
Regardless of the ID specified, this method returns externally managed accounts available to the context user across all Experience Cloud sites.
includeMyAccount
Type: Boolean
Specifies whether to return the context user’s account (true) or not (false). The default value is false.

getExternalManagedAccounts(webstoreId)

Get externally managed accounts for a store.

API Version

49.0

Requires Chatter

No

Signature

public static ConnectApi.ExternalManagedAccountCollectionOutput getExternalManagedAccounts(String webstoreId)

Parameters

webstoreId
Type: String
ID of the webstore.

getExternalManagedAccounts(webstoreId, includeMyAccount)

Get externally managed accounts, including the context user’s account, for a store.

API Version

53.0

Requires Chatter

No

Signature

public static ConnectApi.ExternalManagedAccountCollectionOutput getExternalManagedAccounts(String webstoreId, Boolean includeMyAccount)

Parameters

webstoreId
Type: String
ID of the webstore.
includeMyAccount
Type: Boolean
Specifies whether to return the context user’s account (true) or not (false). The default value is false.