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).