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.
AppMenu Class
Namespace
AppMenu Methods
The following are methods for AppMenu.
setAppVisibility(appMenuItemId, isVisible)
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 Salesforce Object Reference
-
isVisible:
Type: Boolean
If true, the app is visible.
Return Value
Type: void
setOrgSortOrder(appIds)
Signature
public static void setOrgSortOrder(List<Id> appIds)
Parameters
-
appIds:
A list of application ID values. For more information, see the ApplicationId field for AppMenuItem in the Salesforce Object Reference.
Return Value
Type: void
setUserSortOrder(appIds)
Signature
public static void setUserSortOrder(List<Id> appIds)
Parameters
-
appIds:
A list of application ID values. For more information, see the AppMenuItemId field for UserAppMenuItem in the Salesforce Object Reference.
Return Value
Type: void