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 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,836 Super User 2026 Season 1 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,963 Moderator 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 450

#2
Haque Profile Picture

Haque 366

#3
Valantis Profile Picture

Valantis 349

Last 30 days Overall leaderboard