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 / Send reminder emails w...
Power Automate
Answered

Send reminder emails with a list of expiring documents with dynamic email addresses

(0) ShareShare
ReportReport
Posted on by 1

I'm trying to build a flow based on a SP Doc Library of Standard Operating Procedures. 

 

I need it to send on schedule based in the expiry date field in the library.  The part i'm having trouble with is sending the list of documents as an HTML table to a single email address i.e...

Five SOPs might have a single owner and I want to send one email with those 5 listed

But also the SOPs can have more than one owner (multi select person field) as below

 

garethbeverland_0-1710114041271.png

 

I'm sure there is a solution out there but finding it hard to get the search term right (or maybe it is very difficult). 

 

Thanks !

Categories:
I have the same question (0)
  • creativeopinion Profile Picture
    10,502 Super User 2025 Season 2 on at

    @garethbeverland Take a look at this YT Tutorial: How to Send a SINGLE EMAIL ✉️ with multiple SharePoint list items | Build THIS Power Automate Flow

     

    Although I cover how to send a single email of multiple SharePoint list items—the same concept can be applied when working with files in a document library. Instead of the Get Items action, you'll need to use the Get Files (properties only) action.

     

    Fun fact. The Get Files (properties only) action returns files and folders. To return files only, check out this YT Short

     

    IN THIS VIDEO:

     How to send multiple list items in a single email with a Power Automate Flow

     How to create a dynamic date range

     How to use the Convert Time Zone action

     How to use a Filter Query in the Get Items action

    How to count number of items in an array

     How to use the Select action to extract a users display name and email address

     How to create a unique list of email addresses

     How to use the Create HTML Table action

     How to customize the HTML Table with CSS styles

    How to use the Send an email (V2) action

    How to use the Append to String Variable action

    How to create a custom list of items for an email

    How to use the Send an email (V2) action

    How to display singular or plural text based on the number of items returned

     

    Since it looks like your Owner column can assign more than one user. You'll need to also reference this YT Tutorial: How to Handle Multi-Person SharePoint Item Notifications in Outlook and MS Teams with Power Automate

     

    The tutorial linked above only covers a scenario where each task is assigned to a single user. Again, this tutorial covers how to work with items in a SharePoint list—however, you can use the same concepts covered in the video for your flow.

     

    In this Microsoft Power Automate tutorial I’ll cover how to create a flow that is triggered by selecting an item. This automation will send an email to all assigned users for the selected task. I’ll also show you how to adjust your flow so that you can send a message in Teams. Then I’ll show you how to collect a list of unique users that have been assigned to multi-person tasks. Using this concept, we’ll edit the flow from the previous tutorial so that it works with a multi-person column.

     

    IN THIS VIDEO:

      How to trigger a flow from a selected file

      How the multi-person column data outputs

      How to use the Select action to get all assigned to users of a SharePoint item

      How to use the Join action to convert an array of email addresses into a string

      How to send a single email to all assigned to users of a SharePoint item

      How to send an email to each assigned to user of a SharePoint item

      How to send a Teams message to each user assigned to a SharePoint item

      How to return a list of unique users from the multi-person column in a SharePoint list

      How to use a Filter Array action to return all SharePoint list items assigned to each user

      How to group Power Automate actions together with the Scope action

      How to edit a previous flow

     

    Hope this helps!


    If I helped you solve your problem—please mark my post as a solution .
    Consider giving me a 👍 if you liked my response! If you're feeling generous— ️  Buy me a coffee: https://www.buymeacoffee.com/acreativeopinion

    👉 Watch my tutorials on YouTube
    👉 Tips and Tricks on TikTok
     

  • Verified answer
    v-yetonggu-msft Profile Picture
    on at

    Hi @garethbeverland ,

    Do you want to email everyone the name of the file they own when today equals the expiration date?

    The Owner column is a multi-select person column.

    If so, I did a test for your reference.

    In my scenario:

    My Outlook Inbox:

    vyetonggumsft_0-1710135884468.png

    My Flow:

    vyetonggumsft_0-1710130960741.png

    vyetonggumsft_3-1710131849235.png

     

    FSObjType eq 0 and ExpiryDate eq '@{utcNow('yyyy-MM-dd')}'
    
    join(xpath(xml(json(concat('{"body":{"value":', item()?['Owner'] , '}}'))), '/body/value/Email/text()'),',')
    
    replace(replace(replace(string(body('Select')),'[',''),']',''),'"','')

     

    vyetonggumsft_4-1710131948978.png

     

    union(split(variables('Email'),','),split(variables('Email'),','))
    
    join(xpath(xml(json(concat('{"body":{"value":', item()?['Owner'] , '}}'))), '/body/value/Email/text()'),',')
    
    items('Apply_to_each')
    
    item()?['{Name}']
    
    item()?['ExpiryDate']

     

    Best Regards,

    Sunshine Gu

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

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard