AppMenu Class
Contains methods to set the appearance of apps in the App Launcher.
The following are methods for AppMenu.
-
setAppVisibility(appMenuItemId, isVisible)
Shows or hides specific apps in the App Launcher.
-
Sets the organization-wide default sort order for the App Launcher based on a List of app menu item IDs in the desired order.
-
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.
Shows or hides specific apps in the App Launcher.
public static void setAppVisibility(Id appMenuItemId, Boolean isVisible)
-
appMenuItemId:
Type: Id
The 15-character application ID value for an app. For more information, see the
ApplicationIdfield for AppMenuItem or theAppMenuItemIdfield for UserAppMenuItem in the Salesforce Object Reference -
isVisible:
Type: Boolean
If
true, the app is visible.
Type: void
Sets the organization-wide default sort order for the App Launcher based on a List of app menu item IDs in the desired order.
public static void setOrgSortOrder(List<Id> appIds)
-
appIds:
A list of application ID values. For more information, see the
ApplicationIdfield for AppMenuItem in the Salesforce Object Reference.
Type: void
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.
public static void setUserSortOrder(List<Id> appIds)
-
appIds:
A list of application ID values. For more information, see the
AppMenuItemIdfield for UserAppMenuItem in the Salesforce Object Reference.
Type: void