function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Andrew EdmondsAndrew Edmonds 

Minimize a utility bar component

Hi all,

I have a number of components that live in a utility bar in my lightning app. Some of them redirect the main page to another record. At the moment, the utility bar component remains open until the user clicks the minimize button. However, I want to minimize the utility bar component for them from the controller before the page redirects. Does anyone know how I'd go about doing this?

Many thanks,

Andy
Jeff Escott 4Jeff Escott 4
Andy,
Did you ever find a solution?
Thanks
Basant Kr VermaBasant Kr Verma
Hi Andrew, Jeff,

Though its too old post but I faced same issue again and I was able to resolve it by using minimizeUtility method of lightning:utilityBarAPI

You can find example at below link: 
https://developer.salesforce.com/docs/atlas.en-us.api_console.meta/api_console/sforce_api_console_lightning_minimizeItem.htm

Hope it will help!
shubham gupta 280shubham gupta 280
I have the same issue when I am using the lightning web component inside Aura component, So in lwc utilityBarApi is not avialable what can I do