NavigationMenu Class

Get navigation menu items for an Experience Cloud site.

ConnectApi

These methods are for NavigationMenu. All methods are static.

Get navigation menu items for an Experience Cloud site.

52.0

52.0

No

public static ConnectApi.NavigationMenuItemCollection getCommunityNavigationMenu(String communityId, String navigationLinkSetId, String navigationLinkSetDeveloperName, ConnectApi.PublishStatus publishStatus, Boolean includeImageUrl, Boolean addHomeMenuItem, List<ConnectApi.NavigationMenuItemType> menuItemTypesToSkip)

communityId

Type: String

ID of an Experience Cloud site.

navigationLinkSetId

Type: String

ID of the navigation link set.

navigationLinkSetDeveloperName

Type: String

Developer name of the navigation link set.

publishStatus

Type: ConnectApi.PublishStatus

Publish status of the navigation menu item. Values are:

  • Draft
  • Live

includeImageUrl

Type: Boolean

Specifies whether to include the image URL with the menu item (true) or not (false).

addHomeMenuItem

Type: Boolean

Specifies whether to add the Home menu item (true) or not (false).

menuItemTypesToSkip

Type: List<ConnectApi.NavigationMenuItemType>

List of menu item types to filter out of the results. Values are:

  • DataSourceDriven—Menu items dynamically added from a data source.
  • Event—Event, such as logging in, logging out, or switching accounts.
  • ExternalLink—URL outside of your site.
  • GlobalAction—Lets users create records that aren’t related to other records.
  • InternalLink—Relative URL inside your site.
  • MenuLabel—Menu label.
  • Modal—Modal, such as Account Switcher.
  • NavigationalTopic—Dropdown list with links to the navigational topics in your site.
  • SalesforceObject—Objects such as accounts, cases, contacts, and custom objects.
  • SystemLink—System link, such as a link to Builder, Workspaces, or Setup.

Type: ConnectApi.NavigationMenuItemCollection

Supported navigation menu item types are:

  • DataSourceDriven—Menu items dynamically added from a data source.
  • Event—Event, such as logging in, logging out, or switching accounts.
  • ExternalLink—URL outside of your site.
  • GlobalAction—Lets users create records that aren’t related to other records.
  • InternalLink—Relative URL inside your site.
  • MenuLabel—Menu label.
  • Modal—Modal, such as Account Switcher.
  • NavigationalTopic—Dropdown list with links to the navigational topics in your site.
  • SalesforceObject—Objects such as accounts, cases, contacts, and custom objects.
  • SystemLink—System link, such as a link to Builder, Workspaces, or Setup.

Get navigation menu items for an Experience Cloud based on an effective account.

54.0

54.0

No

public static ConnectApi.NavigationMenuItemCollection getCommunityNavigationMenu(String communityId, String navigationLinkSetId, String navigationLinkSetDeveloperName, ConnectApi.PublishStatus publishStatus, Boolean includeImageUrl, Boolean addHomeMenuItem, List<ConnectApi.NavigationMenuItemType> menuItemTypesToSkip, String effectiveAccountId)

communityId

Type: String

ID of an Experience Cloud site.

navigationLinkSetId

Type: String

ID of the navigation link set.

navigationLinkSetDeveloperName

Type: String

Developer name of the navigation link set.

publishStatus

Type: ConnectApi.PublishStatus

Publish status of the navigation menu item. Values are:

  • Draft
  • Live

includeImageUrl

Type: Boolean

Specifies whether to include the image URL with the menu item (true) or not (false).

addHomeMenuItem

Type: Boolean

Specifies whether to add the Home menu item (true) or not (false).

menuItemTypesToSkip

Type: List<ConnectApi.NavigationMenuItemType>

List of menu item types to filter out of the results. Values are:

  • DataSourceDriven—Menu items dynamically added from a data source.
  • Event—Event, such as logging in, logging out, or switching accounts.
  • ExternalLink—URL outside of your site.
  • GlobalAction—Lets users create records that aren’t related to other records.
  • InternalLink—Relative URL inside your site.
  • MenuLabel—Menu label.
  • Modal—Modal, such as Account Switcher.
  • NavigationalTopic—Dropdown list with links to the navigational topics in your site.
  • SalesforceObject—Objects such as accounts, cases, contacts, and custom objects.
  • SystemLink—System link, such as a link to Builder, Workspaces, or Setup.

effectiveAccountId

Type: String

ID of the account for which the request is made. If unspecified, defaults to the account ID for the context user.

Type: ConnectApi.NavigationMenuItemCollection

Supported navigation menu item types are:

  • DataSourceDriven—Menu items dynamically added from a data source.
  • Event—Event, such as logging in, logging out, or switching accounts.
  • ExternalLink—URL outside of your site.
  • GlobalAction—Lets users create records that aren’t related to other records.
  • InternalLink—Relative URL inside your site.
  • MenuLabel—Menu label.
  • Modal—Modal, such as Account Switcher.
  • NavigationalTopic—Dropdown list with links to the navigational topics in your site.
  • SalesforceObject—Objects such as accounts, cases, contacts, and custom objects.
  • SystemLink—System link, such as a link to Builder, Workspaces, or Setup.