web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : W50P6XZd+czRT9oJLc7GdF
Power Automate - General Discussion
Answered

Send a recurring email based on specific date that has the different file attached to different email

Like (1) ShareShare
ReportReport
Posted on 10 Nov 2023 01:50:45 by 190

Hi.

 

I'm looking for a way to automate an email to be sent on specific date (the data stored at excel) with attachment that stored on sharepoint folder. The attachment will stay in the same folder but is updated every month. Is there a way to do this with Power Automate?

 

My excel:

pritadewii_0-1699580573709.png

 

My Sharepoint:

pritadewii_1-1699580712784.png

 

My schema flow:

pritadewii_2-1699581035469.png

 

I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,381 Most Valuable Professional on 10 Nov 2023 at 04:00:59
    Re: Send a recurring email based on specific date that has the different file attached to different email

    Where is the association of the File with the company name?

     

  • Verified answer
    trice602 Profile Picture
    14,719 Super User 2025 Season 2 on 10 Nov 2023 at 04:22:04
    Re: Send a recurring email based on specific date that has the different file attached to different email

    Hi @pritadewii ,

     

    I put this together quickly tonight to see what this would look like; I think this will work and give you some framework to make it your own.

     

    Here's my sample excel table.

     

    trice602_0-1699588886535.png

     

    Here's the flow.  The switch cases make it a little wide and small but I will zoom in below too.

     

    trice602_5-1699589737505.png

     

     

    I have a trigger that is a scheduled flow and runs at 5 AM daily 7 days a week.  Inside the settings though, I have a trigger condition, so this isn't firing off every single day.  It's hardcoded because in your example you have 3 dates, so just update your flow settings on-demand.

     

    trice602_2-1699589065633.png

     

     

    @or(equals(formatDateTime(utcNow(), 'yyyy-MM-dd'), '2023-11-10'), equals(formatDateTime(utcNow(), 'yyyy-MM-dd'), '2023-11-11'), equals(formatDateTime(utcNow(), 'yyyy-MM-dd'), '2023-11-12'))

     

    So in my example, this will only run if today's date is 11/10/2023, 11/11/2023, or 11/12/2023.  Again your example has three dates, I picked the next three dates for testing.

     

    trice602_3-1699589164303.png

     

    Next I have a filter query in my List rows present in a table action.  The date format is a specific format, shown below.

     

    formatDateTime(utcNow(),'yyyy-MM-dd')
     
    Here' if the trigger fires, it will list rows present in the table and only get the rows for today's date.  Also notice the formatDateTime expression is inside the apostrophes (highlighted in yellow below).
     
    trice602_4-1699589296130.png

     

    So in my test, this only brings back three rows for 11/10/2023 which is today's date.

     

    Next, I have a simple switch action for the formatDateTim(utcNow(),'yyyy-MM-dd') expression.

     

    trice602_6-1699589801720.png

     

     

    So for each case, I send an email to a Group A recipients.  This can hardcoded or you can make it dynamic.  If the email addresses and people don't change for group A (and the table is small like in your example), to me it doesn't make much difference, but you will need to decide.

     

    Lastly, you can add your attachments from SharePoint here.  Again, if the files update monthly but the file is the same (for group A in this example), then hardcoding it isn't terrible here either.

     

    trice602_8-1699589967669.png

     

    Lastly, you will have three cases for the three dates in your table example.  Again, you can make the email addresses and attachments dynamic but will need to decide what level of effort you want to put into this but this framework will help you get started for sure.
     

     

     

     

  • Verified answer
    trice602 Profile Picture
    14,719 Super User 2025 Season 2 on 10 Nov 2023 at 04:29:06
    Re: Send a recurring email based on specific date that has the different file attached to different email

    Hi @pritadewii ,

     

    Here's my successful run for today's date.

     

    trice602_0-1699590525784.png

     

  • pritadewii Profile Picture
    190 on 10 Nov 2023 at 05:02:42
    Re: Send a recurring email based on specific date that has the different file attached to different email

    Hi @trice602 I've just tried your flow and it works. Thank you.

  • trice602 Profile Picture
    14,719 Super User 2025 Season 2 on 10 Nov 2023 at 05:04:01
    Re: Send a recurring email based on specific date that has the different file attached to different email

    Nice!  Glad to help! Tom 😀

     

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 655 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 371 Moderator

#3
chiaraalina Profile Picture

chiaraalina 276

Last 30 days Overall leaderboard
Loading complete