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.

PardotBusinessUnitContext Class

Get the Pardot business units the context user has access to.

Namespace

ConnectApi

PardotBusinessUnitContext Methods

These methods are for PardotBusinessUnitContext. All methods are static.

getBusinessUnitContext()

Get the Pardot business units the context user has access to.

API Version

55.0

Requires Chatter

No

Signature

public static ConnectApi.PardotBusinessUnitContextOutput getBusinessUnitContext()

getBusinessUnitContextByIsCurrentStatus(isCurrent)

Get the Pardot business units the context user has access to by specifying the current status.

API Version

55.0

Requires Chatter

No

Signature

public static ConnectApi.PardotBusinessUnitContextOutput getBusinessUnitContextByIsCurrentStatus(Boolean isCurrent)

Parameters

isCurrent
Type: Boolean
Specifies whether to return only the business unit that’s selected as the context user's current business unit context in the business unit switcher of the Pardot Lightning app (true) or to return only the business units that aren’t selected as the context user's current business unit context (false).