Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Add a Button on Navigation Bar in MS Dynamics 365

(0) ShareShare
ReportReport
Posted on by 605

Hi All,

My requirement is : A button which acts as common to users wherein that button must be visible somewhere on the screen across all places in Dynamics CRM.

Is it possible to add a button in Navigation Bar beside Global Search Option or something.

Or is there any way/idea that i can find a way to achieve this requirement.

Thanks in Advance

Regards,
Rahul 

*This post is locked for comments

  • Rahul G J Profile Picture
    605 on at
    RE: Add a Button on Navigation Bar in MS Dynamics 365

    Hi mayur,

    I would like to know where will you add this JS. What is the functionality of the code written by you.

    Regards

    Rahul

  • Suggested answer
    imayur Profile Picture
    630 on at
    RE: Add a Button on Navigation Bar in MS Dynamics 365

    Hi,

    Note: This is unsupported customization

     var navGroup = window.parent.document.getElementById("navTabGroupDiv");
    
       var url = "full_imageurl";
    
       var parent = document.createElement("img");
    
               parent.id = "test-img"
    
               parent.src = url;
    
               parent.style.float = "right";
    
               parent.style.height = "30px";
    
               parent.style.marginTop  = "10px";
    
               parent.onclick = function () {
    
                   var webResource = 'test.html';
    
                   Xrm.Utility.openWebResource(webResource, null);
    
               };
    
               navGroup.appendChild(parent);
    
               var tab = window.parent.document.getElementsByClassName("navTabFiller");
    
               if (tab!=undefined && tab.length > 0)
    
                   tab[0].remove();


Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans