AppMenu represents the app menu or the Salesforce mobile navigation menu, not the applications themselves. Its appMenuItems collection describes menu entries by name and type; the referenced applications, tabs, flows, and other components remain separate metadata.
Salesforce designates AppMenu as "Reserved for future use." Its exposed structure does not establish a fully documented contract for changing menu behavior through deployment.
Key Elements
| Element | What the Element Controls |
|---|---|
appMenuItems |
A collection of menu entries. Each entry contains name and type; it does not contain the referenced component's definition. |
name |
The entry's name and possible component reference. Interpret it together with type to identify the intended destination. |
type |
A string identifying the kind of menu entry. A reported deployment used ConnectedApp. The related metadata type names listed below do not establish a complete enumeration of allowed values. |
Behavior and Constraints
Treat name and type as a pair when checking an entry. For example, an entry with name set to Chatter_Desktop and type set to ConnectedApp identifies a connected-app reference, not an application definition embedded in the menu.
Menu membership alone does not establish user access to the referenced component. It also does not establish that a referenced Flow is active. Access and activation must be considered separately from the menu entry.
Deployment and Retrieval
Excluding a menu from deployment is different from deleting it from Salesforce. Community reports identify AppSwitcher as a standard menu that rejects deletion. A missing local file can also be involved in a source synchronization failure: source synchronization compares local files with tracked org changes and can attempt a deletion. The reported failure does not establish that every absent local menu file triggers deletion.
For the reported scratch-org deletion failure, the accepted answer suggested either retrieving AppMenu into the repository or excluding it from Salesforce CLI source operations through .forceignore. The answer included **/appMenus/** as an exclusion pattern. This is an exclusion from source operations, not a procedure for deleting the standard menu.
Successful deployment to staging does not establish that the same menu references will resolve in production. A component visible in the target org's interface may still fail to resolve as the metadata reference used by an appMenuItems entry. Inspect the actual name and type pairs when diagnosing these failures.
DevOps Center can also track a menu as part of a submission. In one reported workaround, removing AppSwitcher required removing both its repository file and its submission-tracking entry. That was a pipeline workaround, not deletion of the standard menu from the org or a general requirement to exclude AppMenu.
Relationships
The name element within a menu entry can reference any of the following metadata types, interpreted together with type. These are alternative destinations, not six required dependencies. Determine dependencies from the entries actually present in the menu.
References
-
ConnectedApp:name -
CustomApplication:name -
CustomTab:name -
Flow:name -
InstalledPackage:name -
Network:name
Reported Issues
-
A source push can report an attempted deletion even when the menu file is absent locally. In January 2022, a scratch-org push failed with "The AppMenu called 'AppSwitcher' is standard and cannot be deleted" although the project had no
appMenusfolder. The accepted answer attributed the failure to source synchronization attempting deletion and suggested retrievingAppMenuor excluding it through.forceignore. This was a reported diagnosis, not a rule for all missing files. See the scratch-org deletion discussion. -
Production deployment can fail on a connected-app reference despite staging success and a visible app listing. In December 2024, a DevOps Center deployment failed with "In field: AppMenuItem.Name - no ConnectedApp named Chatter_Desktop found." The entry used
nameofChatter_DesktopandtypeofConnectedApp, and the reporter could see Chatter Desktop in production's Connected Apps interface. In a May 2025 follow-up, another participant reported that removing individual offending entries was insufficient. They instead removedforce-app/main/default/appMenus/AppSwitcher.appMenu-meta.xmlfrom the repository and its entry insf_devops__Submit_Component__c, the DevOps Center submission-tracking object. This was a pipeline workaround, not deletion of Salesforce's standard menu. See the AppSwitcher production deployment discussion. -
Package version creation was reported to fail even though the same source worked in scratch orgs. In November 2020, a packaging operation returned a generic
AppSwitchererror. An answer reported that backend logs showed a module-resolution failure that prevented identifying the originating org, and suggested removingAppSwitcherreferences from the packaging source. This was a case-specific diagnosis and suggested workaround, not a general packaging rule. See the package version creation discussion.
Common Questions
Can I deploy AppMenu to change app menu behavior?
Salesforce marks AppMenu as "Reserved for future use." Although its structure exposes menu entries, that structure does not establish a fully documented contract for changing menu behavior through deployment.
Why does AppSwitcher say it cannot be deleted when I have no local file?
A reported scratch-org case attributed this to source synchronization attempting to delete the missing component. The accepted answer suggested retrieving AppMenu or excluding it from CLI source operations through .forceignore. Absence of a local file does not universally imply deletion.
Why does AppMenu report no ConnectedApp named Chatter_Desktop when I can see it in Setup?
That exact failure was reported during a production deployment after staging succeeded. In that case, the visible Connected Apps listing did not demonstrate that the menu's metadata reference could resolve. Check the failing entry's name and type together.
Does adding an AppMenu entry grant access or activate a flow?
No. Menu membership alone does not establish user access to the referenced component or activation of a referenced Flow. Those concerns are separate from the menu entry.