Close Menu
SalesforceCodex
    Facebook X (Twitter) Instagram
    Trending
    • Introducing Agentforce3 to Salesforce Developers
    • The Ultimate Guide to Apex Order of Execution for Developers
    • How to Handle Bulkification in Apex with Real-World Use Cases
    • How to Confidently Manage Transactions in Salesforce Apex
    • Building a Dynamic Tree Grid in Lightning Web Component
    • 10 Salesforce Chrome Extensions to Boost Your Productivity
    • How to Build a Generic Modal Window in Lightning Web Component
    • Top 10 Salesforce Flow Features of Salesforce Summer ’25
    Facebook X (Twitter) Instagram
    SalesforceCodex
    Subscribe
    Wednesday, July 23
    • Home
    • Blogs
      • Architecture
      • Apex
      • Lightning Web Components
      • Integration
      • Flows & Automation
      • Best Practices
      • Questions
      • News
      • Books Testimonial
    • Hire Me
    • Certification
      • How to Prepare for Salesforce Integration Architect Exam
      • Certification Coupons
    • Downloads
    • About Us
      • Privacy Policy
    • Contact Us
    SalesforceCodex
    Home»Salesforce»Open Utility Bar On Lightning App Load

    Open Utility Bar On Lightning App Load

    Dhanik Lal SahniBy Dhanik Lal SahniSeptember 20, 2020Updated:January 12, 20251 Comment2 Mins Read
    Facebook Twitter Pinterest LinkedIn Tumblr Email
    Open Utility Bar On Lightning App Load
    Share
    Facebook Twitter LinkedIn Pinterest Email

    Some time we need to open utility bar when lightning app is loaded. This is required when we want to run some background job like update user record or initialize user session when page is loaded.

    Use Case:

    SalesforceCodex.com is running multi program health system built on Salesforce Platform. Business want when user will open lightning app they will get program selection screen.

    Solution:

    To handle this business requirement, we can use lightning utility bar. We can put lightning component in utility bar. When lightning app will be loaded that lightning component will open automatically.

    Load component on utility bar loaded - Salesforcecodex

    We have to check flag ‘Start Automatically‘ for lightning component in utility bar.

    Let us see lightning component code which will show program selection on page load.

    We have to use getAllUtilityInfo of lightning:utilityBarAPI to get current utility bar and then open that utility bar.

    Test Page:

    Lightning App | Utility Bar in Lightning App

    References:

    • Utility Bar API
    • Combo Box In Lightning

    Related Posts

    • How to Use Image Cropper in Salesforce Lightning Web Component
    • Configurable Record Picker in Lightning Web Component
    • Displaying Tabular Data with GraphQL in Lightning Web Component
    • Export Data from Lightning Web Component to Excel Sheet
    • Generate PDF using jsPDF in Lightning Web Component
    • Custom Image Slider in Lightning Web Component

    lighting lightning component utilitybar
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Previous ArticleUploading Files to Microsoft One Drive using Apex
    Next Article Publish Platform Events from ASP.NET
    Dhanik Lal Sahni
    • Website
    • Facebook
    • X (Twitter)

    With over 18 years of experience in web-based application development, I specialize in Salesforce technology and its ecosystem. My journey has equipped me with expertise in a diverse range of technologies including .NET, .NET Core, MS Dynamics CRM, Azure, Oracle, and SQL Server. I am dedicated to staying at the forefront of technological advancements and continuously researching new developments in the Salesforce realm. My focus remains on leveraging technology to create innovative solutions that drive business success.

    Related Posts

    By Dhanik Lal Sahni5 Mins Read

    Introducing Agentforce3 to Salesforce Developers

    July 21, 2025
    By Dhanik Lal Sahni14 Mins Read

    The Ultimate Guide to Apex Order of Execution for Developers

    July 20, 2025
    By Dhanik Lal Sahni6 Mins Read

    How to Handle Bulkification in Apex with Real-World Use Cases

    July 15, 2025
    View 1 Comment

    1 Comment

    1. Pingback: Open Utilty Bar On the Onload (connectedCallback) functtion LWC Component – GrindSkills

    Leave A Reply Cancel Reply

    Ranked #1 Salesforce Developer Blog by SalesforceBen.com
    SFBenTopDeveloper
    Ranked #4 Salesforce Developer Blog by ApexHours.com
    ApexHoursTopDevelopers
    Categories
    Archives
    Tags
    apex (115) apex best practices (4) apex code best practice (9) apex code optimization (5) Apex logging (4) apex rest (11) apex trigger best practices (5) architecture (22) Asynchronous apex (9) AWS (5) batch apex (10) batch processing (4) code optimization (9) custom metadata types (5) design principle (9) flow (16) google (6) google api (4) integration (19) integration architecture (6) lighting (8) lightning (66) lightning-combobox (5) lightning-datatable (10) lightning component (32) Lightning web component (64) lwc (53) named credential (8) optimize apex (4) optimize apex code (5) optimize apex trigger (4) Permission set (4) Queueable (9) rest api (23) S3 Server (4) salesforce (147) salesforce apex (51) salesforce api (4) salesforce api integration (5) Salesforce Interview Question (4) salesforce news (5) salesforce question (5) solid (6) tooling api (5) Winter 20 (8)

    Get our newsletter

    Want the latest from our blog straight to your inbox? Chucks us your detail and get mail when new post is published.
    * indicates required

    MailChimp

    Facebook X (Twitter) Instagram Pinterest YouTube Tumblr LinkedIn Reddit Telegram
    © 2025 SalesforceCodex.com. Designed by Vagmine Cloud Solution.

    Type above and press Enter to search. Press Esc to cancel.

    Ad Blocker Enabled!
    Ad Blocker Enabled!
    Our website is made possible by displaying online advertisements to our visitors. Please support us by disabling your Ad Blocker.