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 / Adding link to page to...
Power Automate
Answered

Adding link to page to navigation using Power Automate

(0) ShareShare
ReportReport
Posted on by 447
Hi all,
 
Hope you're doing good.
 
So i'm trying to add a link to the quick launch menu of a SharePoint site.
 
To be more accurate, I have a site that i use as a template, i created a workflow so when i create a new site, all the pages from my "template" site are copied to the new site...and those pages have to be added to the left handedmenu.
 
To be honest, i managed to do it. in a workflow i add a link to a PowerApps, in another site i add links to some websites .... but here there's something wrong.
 
 
Sorry, the image quality is not too good but it's a picture from the screen of my work computer...
 
 
I first set the "Url" property to the pages of my "Template" site picking up the "{Link}" of the item in my loop.
 
           items('Apply_to_each')?['{Link}']
 
it put the wrong link in my menu and when i was clicking the link it was driving my to my "Template" site. But this was working.
 
 
So I tried to put the correct link (the one from the page that just got copied) in the "Url" property and ....that doesn't seem to be working. 
Pages are copied but links are not created in the menu ...and .... the workflow is hanging...
 
Putting dynamic content variables inside doesn't work. I tried with the output of the copy file action , it doesn't work either.
I tried many things and at the end i thought maybe it's coming from the format of the link. but i see that whenever i try to do it using the url of the new site it's doesn't work.
 
So i created a variable "varxxx" and thought if i replace the url part of the page coming from the "Template" by the url from the new site...that should work...
I had to do a "Decode" otherwise there are lots of special characters... but i end up with ...
 
           decodeuricomponent(replace(items('Apply_to_each')?['{Link}'], variables('varTemplateSiteUrl'), variables('varNewSiteUrl') ))
 
And this makes me a new link but when i put it in my HTTP request.... as on the picture... it still hangs.... but the link is correct.
 
Would any of you have an idea what i'm doing wrong and how i can solve it ?
 
Many thanks for your help
 
Categories:
I have the same question (0)
  • Verified answer
    Kadd Profile Picture
    447 on at
    Ok... I have the impression since the forum has been updated people don't come anymore or don't answer much anymore...i don't know... or it's my explanation that is not clear...whatever..
     
    I found a solution.
     
    For those interested and who would want an answer...
     
    I kept my HTTP Request to create a link in the QuickLaunch ( the screenshot i put in my question but instead of the variable ( varxxx ), i use the link from the "Apply to each" -  I have a loop becasue i'm copying the pages from one source site to another )
     
    So the content to put in " Url : " is :
     
    items('Apply_to_each')?['{Link}']
     
    (adding to the QuickLaunch the link to each page that is copied from the source to the destination)
     
    Then i use a Parse JSON action ( parsing the HTTP Request I used to create the link in the Quicklaunch) and get the ID of the parsed QuickLaunch link into a variable . 
     
    From there, I use another HTTP Request to update the same QuickLaunch link.
    This HTTP Request's  "Url : " property is set to variable i used in my question... 
     
    decodeuricomponent(replace(items('Apply_to_each')?['{Link}'], variables('varTemplateSiteUrl'), variables('varNewSiteUrl') ))
     
    (Replacing the link to the source site by the link to the destination site...)
     
    and...voila !
     
  • Michael E. Gernaey Profile Picture
    53,433 Super User 2025 Season 2 on at
    Actually many off us answer hundreds of questions a week... but we all get tired and need a break, not all questions are going to get answered.
     
    keep in mind it's volunteer site.
     
    looking at your number you don't really answer peoples questions so /shrug :-) maybe look at it from there... you do more it helps us do less and then we can help more others.
     
    It's a vicious cycle of Q and A lol
     
    On the bright side you found an answer on your own and learned something in that process which is a bonus in itself!!
     
    Glad you were able to solve it.

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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard