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 / Create a Hyperlink to ...
Power Automate
Suggested Answer

Create a Hyperlink to a SharePoint Folder in Power Automate.

(2) ShareShare
ReportReport
Posted on by 395
I have Created a flow to grab attachments from a list item and create a folder and put the attachments in the folder. I have been able to put the attachments in the folder, but i am having trouble creatin a url to attach back to the list form. 
 
I know it is a deeplink but I can't get the link to work. I get a 404 error. 
 
this is the code to create the folder link in a compose
 
concat('https://bryonline.sharepoint.com/sites/App/Attachments/',triggerBody()?['ID'],'-',triggerBody()?['Title'],'/Forms/AllItems.aspx')
 
 
Does anybody have any experience with this. 
Categories:
I have the same question (0)
  • Suggested answer
    Jon Unzueta Profile Picture
    1,827 Super User 2025 Season 2 on at
     

    You're on the right track with using a concat() expression to build a deep link to the SharePoint folder, but the 404 error suggests that the URL you're generating might not match the actual folder path or structure in SharePoint.

    Let’s troubleshoot and refine your approach.


    ✅ What to check:

    1. Folder Path Accuracy

    Your current expression:

    concat('https://bryonline.sharepoint.com/sites/App/Attachments/',triggerBody()?['ID'],'-',triggerBody()?['Title'],'/Forms/AllItems.aspx')

    This assumes the folder is located at:
    https://bryonline.sharepoint.com/sites/App/Attachments/{ID}-{Title}/Forms/AllItems.aspx
     

    But SharePoint folder URLs are case-sensitive and space-sensitive, and the folder name might not match exactly if:

    • Title contains spaces or special characters.
    • The folder was created with a different naming convention.

    ✅ Fix: Use encodeUriComponent() for safety

    Try this instead:

    concat(

      'https://bryonline.sharepoint.com/sites/App/Attachments/',

      triggerBody()?['ID'],

      '-',

      encodeUriComponent(triggerBody()?['Title']),

      '/Forms/AllItems.aspx'

    )

     

    This ensures that any spaces or special characters in the title are properly encoded.


    🔍 Alternative: Use SharePoint's Path or Link to item

    If you're creating the folder using a SharePoint action like Create folder, you can often get the folder's path directly from the output of that action. Look for:

    • Path
    • Link to item
    • Folder URL

    You can then use that directly or append /Forms/AllItems.aspx to it.


    🧪 Test the URL

    Paste the generated URL into your browser and:

    • Check if it redirects to the folder.
    • If not, try removing /Forms/AllItems.aspx and just use the folder path.
     
    🏷️ Tag me if you have any further questions or if the issue persists.
    ✅ Click "Accept as Solution" if my post helped resolve your issue—it helps others facing similar problems.
    ❤️ Give it a Like if you found the approach useful in any way.
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,493 Super User 2025 Season 2 on at
     
    Question: I do not see a file extension in the above. Does Title have that?
     
    Can you do this.
     
    1) Go into the flow, grab the output of your concat
    2) Go into SharePoint, go to the folder where the files are, please copy the URL above (dont open any files)
    3) share a picture of the Folder with the files in it please.
     
    Just paste the pictures in here
    My assumption is your URL is incorrect, but need a way to verify that by looking at them.
     
    If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.

    Thank you!
    Sincerely, Michael Gernaey

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

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard