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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / SharePoint HTTP REST A...
Power Automate
Unanswered

SharePoint HTTP REST API call to add mega menu item on the hub site

(0) ShareShare
ReportReport
Posted on by 147
Hi,
Is there a REST API call that will allow me to add the item to the mega menu on the hub site?

I found the PnP script but in my case, I would like to trigger the action from Power Automate using a standard connector. 

Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @Michal,

     

    Yes, that should be possible via the TopNavigationbar of the navigation endpoint. That endpoint is also used for the hub navigation on a site collection which has been promoted as a hub.

     

    Try something like below.

     

    Uri

    _api/web/Navigation/TopNavigationbar

     

    Body

    {
    "__metadata": { "type": "SP.NavigationNode" },
    "Title": "Power Automate and REST API!",
    "Url":"https://www.expiscornovus.com"
    }

     

     hubnavigation.png

     

    Example screenshot of the end result. Keep in mind that the hub navigation sometimes is cached (so, it might take a bit of time to show up. In that case hit the edit button or ctrl+f5 a couple of times).

     

    hubnavigation_example.png

  • Michal Z.  Profile Picture
    147 on at

    Thank you @Expiscornovus  for your help. This works

    I wonder how you find those REST API functions. I have spent hours looking for the nice documented source of those and couldn't find it. 

  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @Michal,

     

    The main doc about REST API is a good starting point:

    https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/complete-basic-operations-using-sharepoint-rest-endpoints

     

    All the other stuff I found either via other threads on this forum or other forums (like StackOverflow) or via reflection in the Developer toolbar of my browser.

     

    Just execute your steps in the interface and have a look in the Network tab. Normally that will give me some clues on what to use as well 😁

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard