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 / Placing multiple files...
Power Automate
Unanswered

Placing multiple files links in email body

(0) ShareShare
ReportReport
Posted on by 72

Hi,

 

I'm trying to create an email with a series of links to files from a SharePoint library, like so:

 

RCP fixes _ Fitting Rooms1_SM1.jpg

 Powerapps provides the file IDs and Get file properties the links. How do I add the links to the email body?

Categories:
I have the same question (0)
  • v-yueyun-msft Profile Picture
    on at

    Hi , @Salv 

    According to your description, you want to pass the ID to the flow and send the links of the files to the email.

    This is my Ids pass to flow in Power Apps:

    [{"ID":3},{"ID":4},{"ID":5},{"ID":6},{"ID":9},{"ID":12},{"ID":15},{"ID":16}]

    I use the Json() funtion to convert the Ids to the string to pass to the flow:

    vyueyunmsft_0-1701225958505.png

    This is my flow:

    vyueyunmsft_1-1701225971396.png

    (1)The trigger and the initial variable action:

    vyueyunmsft_2-1701226006445.png

    (2)The Apply to each action:

    vyueyunmsft_3-1701226089826.png

    json(triggerBody()['text'])
    int(item()?['ID'])
     

    (3)The Last two actions:

    vyueyunmsft_4-1701226146494.png

    item()?['fileName']
    concat('<a href="',item()?['Link'],'" >',item()?['Link'],'</a>')
    replace(replace(replace(body('Create_HTML_table'),'&lt;','<') , '&gt;','>'),'&quot;','"')
     
     
    The result is as follows:
    vyueyunmsft_5-1701226234833.png

     

     

    Best Regards,

    Yueyun Zhang

  • Verified answer
    Tetris Profile Picture
    72 on at

    Thank you @v-yueyun-msft . Great suggestion on the Append to array variable! I used it but I think I  came up with a simpler solution (I am a beginner, so I used the actions are familiar with). Thank you for your help!

     

    Salv_0-1701233169266.png

     

    Salv_1-1701233169268.png

     

    Salv_2-1701233169273.png

     

     

    Salv_3-1701233169274.png

     

    Salv_4-1701233169275.png

     

    Salv_5-1701233169275.png

     

    Salv_6-1701233169276.png

     

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard