Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Displaying SharePoint Attachment Links as List in DevOps Feature

(0) ShareShare
ReportReport
Posted on by 17

I have a flow that creates DevOps Features, by way of a Power Apps form and SharePoint list. Everything works ok except for 2 things.

 

1. The for each loop to get the links is causing duplicate feature creation (one for each attachment link)

2. The links are not hyperlink

 

I want to somehow concatenate the links to just one feature. Curious if anyone has some more info, thanks!

  • vvSTRIDEvv Profile Picture
    17 on at
    Re: Displaying SharePoint Attachment Links as List in DevOps Feature

    Works Perfect!! Thank You!!!

  • Verified answer
    Mira Ghaly Profile Picture
    11,409 Super User 2025 Season 1 on at
    Re: Displaying SharePoint Attachment Links as List in DevOps Feature

    @vvSTRIDEvv 

    Apologizes for the late reply, I have tried the below on my side and it worked.

    1. Initialize string variable after Get Attachments and before the Loop

    Mira_Ghaly_0-1649208615416.png

     

    2. In the Loop , Add the action append to string variable with below Expression and then pass the URL Arrays String to the Work Item Description body

    concat('<a href="',item()?['AbsoluteUri'],'">',items('Apply_to_each')?['DisplayName'],'</a>','<br/>')

    Mira_Ghaly_1-1649208672300.png

    This is the output on the work item

    Mira_Ghaly_2-1649208749680.png

    Hope this works for you as well!

     

     

  • vvSTRIDEvv Profile Picture
    17 on at
    Re: Displaying SharePoint Attachment Links as List in DevOps Feature

    @Mira_Ghaly Ok, I have the attachments links working somewhat. Here is what I did:

    vvSTRIDEvv_1-1649174160527.png

     

    Then out side the loop, I append the variable:

    vvSTRIDEvv_2-1649174235011.png

     

    Concat = concat(outputs('Get_URL_From_Loop'),';')

     

    This gets me the multiple links, the problem I have is that the links do not come through cleanly. They have '[' and "" around them, and they are not clickable.

     

    Here is what the links come through as currently:

    ["https://software.sharepoint.com/sites/Metrics/Lists/Enhancement Submissions/Attachments/3/Customer List for SharePoint.xlsx","https://software.sharepoint.com/sites/Metrics/Lists/Enhancement Submissions/Attachments/3/Small.png"]

     

    What can I do to clean them up?

  • vvSTRIDEvv Profile Picture
    17 on at
    Re: Displaying SharePoint Attachment Links as List in DevOps Feature

    Thanks! I am not getting duplicates anymore, I apologize I should have specified. After the initial post I moved the feature creation out of the loop. The trigger is working perfectly and I am creating one feature per run. Just the attachment link giving me the trouble.

  • Mira Ghaly Profile Picture
    11,409 Super User 2025 Season 1 on at
    Re: Displaying SharePoint Attachment Links as List in DevOps Feature

    @vvSTRIDEvv 

    Can you please check this video that explains how to trigger a flow on a sharepoint column change.

     

    https://youtu.be/xvmi21KomK0

     

     

     

     

     

     

     

     

     

     

  • Mira Ghaly Profile Picture
    11,409 Super User 2025 Season 1 on at
    Re: Displaying SharePoint Attachment Links as List in DevOps Feature

    @vvSTRIDEvv 

    Since you are creating the feature outside the loop so are you still getting duplicate features?

    If yes can you check the history to understand if there is more than one instance running per same item in SharePoint..if yes that means that the issue is in the flow trigger..

     

  • vvSTRIDEvv Profile Picture
    17 on at
    Re: Displaying SharePoint Attachment Links as List in DevOps Feature

    @Mira_Ghaly  I'm triggering the flow based on a 'Status' change within the list. Then Initializing the Variable "SharePointAttachmentURI'

    vvSTRIDEvv_0-1649095157122.png

    Then I am getting the Absolute URI's, which I want to show more than 1. Currently It only shows the last link, I want to show them all. The link is also not a hyperlink, which would be a nice to have.

    vvSTRIDEvv_3-1649095695772.png

    From there I am creating the feature, outside of the loop.

    vvSTRIDEvv_1-1649095529240.png

     

     

  • Mira Ghaly Profile Picture
    11,409 Super User 2025 Season 1 on at
    Re: Displaying SharePoint Attachment Links as List in DevOps Feature

    @vvSTRIDEvv 

    Please share screenshots of your flow and how it is structured.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1