web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / display the name of th...
Power Pages
Answered

display the name of the partner company in the header

(0) ShareShare
ReportReport
Posted on by 26

Hello ,

 

In power apps portal, I would like to display the name of the partner company in the header of the menu after login. Is it possible to do this? and then move some of the menu items to the left of the logo.

 

Thank you in advance for your help.

 

@ragavanrajan  @Anonymous   @OliverRodrigues @chleverenz @Anonymous 

 

Categories:
  • Verified answer
    Christian Leverenz Profile Picture
    1,214 on at

    Hi @mnd ,

    the menu is rendered in standrd via the "header" webtemplate of your site. I would recommend to copy that template to a new one (may be "my header" 🙂 ) and edit the tremplate to your needs. 

    You need a little bit html know-how to do so, bit it will work.

    in order to get the current compannyname, you could use the user object in liquid, which holds all attributes of the currently logged in user ( https://docs.microsoft.com/en-us/powerapps/maker/portals/liquid/liquid-objects#user  ). I assume, that parentcustomerid will be the link to the company you like. You could either take the name property from that attribute or even get other attributes via the entites object in liquid ( https://docs.microsoft.com/en-us/powerapps/maker/portals/liquid/liquid-objects#entities  ).

    Hopefully, this already points in the right direction.

     

    Have fun,

      Christian

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @chleverenz ,

     

    Thank you for your help. Now I can display the name of the company.
    But for the moment I can't move the menu to the left.

     

    Thanks

  • mnd Profile Picture
    26 on at

    Hi @chleverenz ,

     

    Thank you for your help. Now I can display the name of the company.
    But for the moment I can't move the menu to the left.

     

    Thanks

  • Christian Leverenz Profile Picture
    1,214 on at

    Hi @mnd ,

    glad it helped already and thanks for the solutionvoting.

    my headertemplate contains sth like : 

    <div id="navbar" class="navbar-collapse collapse">
          {% assign primary_nav = weblinks["Primary Navigation"] %}
    if you move the whole div do another place in your html it should work.
    The idea of portals at that point is to use the weblinkset "Primary navigation" in order to render the menu.
    So, if you want only part of the menue on the left side, you might want to add either gardcoded links (which i would not recommend) or just invent another weblinkset (may be "Left Primary Navigation") which then contains stuff which should go to the left 🙂
     
    One additional comment: the header is heavily cached by the portal. So, putting too dynamic stuff in there might not work. Or you switch off the headercaching by a sitesetting (which of course slows down your portals)
     
    Have fun,
      Christian

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Pages

#1
11manish Profile Picture

11manish 25 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 20

#3
DianePana Profile Picture

DianePana 9

Last 30 days Overall leaderboard