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