---
schema_version: "1"
id: baef350e93214fff3ddf6f996777f2d89e0402a7d0fc3bb479be8df8ddbebded
title: AppMenu Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_applauncher_AppMenu.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_applauncher_AppMenu.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: f2256865ba0f70f7516545daee14ab6ea90de4e51af3f7f1262c0c2bd474f5e8
description: Contains methods to set the appearance of apps in the App Launcher.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.
---
# AppMenu Class

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

## Namespace

[AppLauncher](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_applauncher.htm "The AppLauncher namespace provides methods for managing the appearance of apps in the App Launcher, including their visibility and sort order.")

- **[AppMenu Methods](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_applauncher_AppMenu.htm#apex_applauncher_AppMenu_methods)**

## AppMenu Methods

The following are methods for AppMenu.

- **[setAppVisibility(appMenuItemId, isVisible)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_applauncher_AppMenu.htm#apex_applauncher_AppMenu_setAppVisibility)**  
    Shows or hides specific apps in the App Launcher.
- **[setOrgSortOrder(appIds)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_applauncher_AppMenu.htm#apex_applauncher_AppMenu_setOrgSortOrder)**  
    Sets the organization-wide default sort order for the App Launcher based on a List of app menu item IDs in the desired order.
- **[setUserSortOrder(appIds)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_applauncher_AppMenu.htm#apex_applauncher_AppMenu_setUserSortOrder)**  
    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.

### 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](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_id.htm#apex_methods_system_id "Contains methods for the ID primitive data type.")
    
    The 15-character application ID value for an app. For more information, see the ApplicationId field for [AppMenuItem](https://developer.salesforce.com/docs/atlas.en-us.264.0.object_reference.meta/object_reference/sforce_api_objects_appmenuitem.htm "HTML (New Window)") or the AppMenuItemId field for [UserAppMenuItem](https://developer.salesforce.com/docs/atlas.en-us.264.0.object_reference.meta/object_reference/sforce_api_objects_userappmenuitem.htm "HTML (New Window)") in the Salesforce Object Reference
- **isVisible**:
    
    Type: [Boolean](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_boolean.htm#apex_methods_system_boolean "Contains methods for the Boolean primitive data type.")
    
    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](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<[Id](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_id.htm#apex_methods_system_id "Contains methods for the ID primitive data type.")\>
    
    A list of application ID values. For more information, see the ApplicationId field for [AppMenuItem](https://developer.salesforce.com/docs/atlas.en-us.264.0.object_reference.meta/object_reference/sforce_api_objects_appmenuitem.htm "HTML (New Window)") in the Salesforce Object Reference.

#### 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](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<[Id](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_id.htm#apex_methods_system_id "Contains methods for the ID primitive data type.")\>
    
    A list of application ID values. For more information, see the AppMenuItemId field for [UserAppMenuItem](https://developer.salesforce.com/docs/atlas.en-us.264.0.object_reference.meta/object_reference/sforce_api_objects_userappmenuitem.htm "HTML (New Window)") in the Salesforce Object Reference.

#### Return Value

Type: void