Newer Version Available

This content describes an older version of this product. View Latest

Utility Bar API Method Parity

The utility bar API provides methods for Aura Components and Lightning Web Components (LWC) in Lightning Experience only. Salesforce Classic isn’t supported.

This table shows how the LWC methods map to Aura Components methods. Both can interoperate on the same page. We recommend using LWC to build user interfaces using modern web standards.

Before you can use the utility bar API with LWC, Lightning Web Security must be enabled in your organization.

Important

Utility Bar API Considerations

Consider these additional guidelines.

  • For LWC, the utilityId parameter is always required. For Aura Components, utilityId can be optional if it’s called from within a utility.
  • For LWC, to retrieve the record context from a component in a utility, use the CurrentPageReference wire adapter. For Aura Components, implement the force:hasRecordId interface on your custom component.
  • The isUtilityPoppedOut() Aura Components method doesn’t have an LWC equivalent. You can use the getAllUtilityInfo() method to retrieve the same information.