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 / Displaying SharePoint ...
Power Automate
Unanswered

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!

Categories:
I have the same question (0)
  • Mira Ghaly Profile Picture
    11,413 Moderator on at

    @vvSTRIDEvv 

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

  • vvSTRIDEvv Profile Picture
    17 on at

    @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,413 Moderator on at

    @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..

     

  • Mira Ghaly Profile Picture
    11,413 Moderator on at

    @vvSTRIDEvv 

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

     

    https://youtu.be/xvmi21KomK0

     

     

     

     

     

     

     

     

     

     

  • vvSTRIDEvv Profile Picture
    17 on at

    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.

  • vvSTRIDEvv Profile Picture
    17 on at

    @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?

  • Verified answer
    Mira Ghaly Profile Picture
    11,413 Moderator on at

    @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

    Works Perfect!! Thank You!!!

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

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard