AppMenu Class

Contains methods to set the appearance of apps in the App Launcher.

Namespace

AppLauncher

AppMenu Methods

The following are methods for AppMenu.

setAppVisibility(appMenuItemId, isVisible)

Shows or hides specific apps in the App Launcher.

Signature

public static void setAppVisibility(Id appMenuItemId, Boolean isVisible)

Parameters

appMenuItemId
Type: Id
The 15-character application ID value for an app. For more information, see the ApplicationId field for AppMenuItem or the AppMenuItemId field for UserAppMenuItem in the SOAP API Developer Guide
isVisible
Type: Boolean
If true, the app is visible.

Return Value

Type: void

setOrgSortOrder(appIds)

Sets the organization-wide default sort order for the App Launcher based on a List of app menu item IDs in the desired order.

Signature

public static void setOrgSortOrder(List<Id> appIds)

Parameters

appIds
Type: List<Id>
A list of application ID values. For more information, see the ApplicationId field for AppMenuItem in the SOAP API Developer Guide.

Return Value

Type: void

setUserSortOrder(appIds)

Sets an individual user’s default sort order for the App Launcher based on a List of app menu item IDs in the desired order.

Signature

public static void setUserSortOrder(List<Id> appIds)

Parameters

appIds
Type: List<Id>
A list of application ID values. For more information, see the AppMenuItemId field for UserAppMenuItem in the SOAP API Developer Guide.

Return Value

Type: void