Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Automatically email reminders from Excel

(0) ShareShare
ReportReport
Posted on by 4

I'm trying to set up a spreadsheet with tasks that automatically email task owners on a specific date. My table called Tasks within my Excel spreadsheet has these columns: Task, Reminder Date, Due Date, Email.

 

I'm new to Power Automate and have tried to create a flow for the first time but have run across various errors. After a day of digging and reading solutions online I still haven't figured it out.

 

My flow set-up: 

Recurrence

List rows present in a table: One Drive for Business, OneDrive - name, File, Tasks

Select: From value; Map email

Compose: Inputs with Expression 

union(body('Select'),body('Select'))
Apply to each:
Select outputs from previous steps: Outputs
Filter Array: see screenshot for the rest.
The expression in the Duedate value for the HTML table is: 
formatDateTime(item()['Reminder Date'],'yyyy-MM-dd')
 
The error I receive upon testing is on the HTML table: 
The execution of template action 'Create_HTML_table' failed. The column values could not be evaluated: 'In function 'formatDateTime', the value provided for date time string '' was not valid. The datetime string must match ISO 8601 format.'.Screenshot of flow.jpg
  • Ellis Karim Profile Picture
    11,122 Super User 2025 Season 1 on at
    Re: Automatically email reminders from Excel

    I have replied here:
    Re: have trouble with Date Time formating in filte... - Power Platform Community (microsoft.com)

  • ina295 Profile Picture
    32 on at
    Re: Automatically email reminders from Excel

    @ekarim2020 would you like to check my case here please ? ☹️

    Re: have trouble with Date Time formating in filte... - Power Platform Community (microsoft.com)

     

    i have so much trouble with filter array not showing the result,.... 

    its been 4 days i tried to fix but no solved yet..

  • ina295 Profile Picture
    32 on at
    Re: Automatically email reminders from Excel

    Flow save failed with code 'InvalidTemplate' and message 'The template validation failed: 'The inputs of template action 'Filter_array' at line '1 and column '1950' is invalid. Action 'Apply_to_each' must be a parent 'foreach' scope of action 'Filter_array' to be referenced by 'repeatItems' or 'items' functions.'.'.

     

     

    it says like this @ekarim2020 

     

    whats wrong with the formula in mine ? 😕

  • Ellis Karim Profile Picture
    11,122 Super User 2025 Season 1 on at
    Re: Automatically email reminders from Excel

    Hi @ina295 

    Make sure you are using the @ symbol at the start of the expression:

     

    @and(not(empty(item()?['Reminder Date'])), equals(item()?['Email'], items('Apply_to_each')?['Email']))

     

     

    ekarim2020_1-1688542996179.png

     

    Ellis
    ____________________________________
    If I have answered your question, please mark the post as ☑️ Solved.
    If you like my response, please give it a Thumbs Up.
    My Blog Site

  • ina295 Profile Picture
    32 on at
    Re: Automatically email reminders from Excel

    @ekarim2020 

     

    and(not(empty(item()?['Reminder Date'])), equals(item()?['Email'], items('Apply_to_each')?['Email']))

     

    how to type in Advance mode ? its says not compatible with template language expression 

  • Ellis Karim Profile Picture
    11,122 Super User 2025 Season 1 on at
    Re: Automatically email reminders from Excel

    Hi @anga ,

     

    Some of your Excel data contains empty Reminder Dates. What is a happening is that the formatDateTime function is trying to convert an empty string (Reminder Date) into a date format and this is what is producing the error:

    Snag_20b09d3.png

     

    You will need to decide how you want to handle empty Reminder Dates.

     

    You could edit the Filter Array action in advanced mode and add a second condition so that it does not select records where the Reminder Date is empty: 

    Snag_21b1d4e.png

     

    ekarim2020_0-1652081953620.png

    The expression would be something like:

    @and(not(empty(item()?['Reminder Date'])), equals(item()?['Email'], items('Apply_to_each')?['Email']))

     

    Hope this helps.

     

    Ellis

  • anga Profile Picture
    4 on at
    Re: Automatically email reminders from Excel

    Thank you. I have tried multiple variations of the date on my spreadsheet that's located on OneDrive and in the expression with no luck. I tried it as I have it in the attached screenshots and am still receiving the error.

     

    Here is some info and screenshots:

    dates_expression.jpg

    dates_test task.jpgdates2.jpg

     

    dates.jpg

  • Ellis Karim Profile Picture
    11,122 Super User 2025 Season 1 on at
    Re: Automatically email reminders from Excel

    Hi @anga ,

     

    Please also check that the date column in Excel is set to Date:

    2022-04-14_17-56-17.gif

     

    See also: Re: DateTime Format List rows present in a table - Power Platform Community (microsoft.com)

     


    Ellis
    ____________________________________
    If I have answered your question, please mark the post as Solved.
    If you like my response, please give it a Thumbs Up.

  • anga Profile Picture
    4 on at
    Re: Automatically email reminders from Excel

    Thank you. I neglected to mention that I do have that set up in the "List rows present in an Excel table" step. When I run the test on the flow that portion of the flow succeeds.iso8601.jpg

  • Ellis Karim Profile Picture
    11,122 Super User 2025 Season 1 on at
    Re: Automatically email reminders from Excel

    Hi @anga ,

     

    Try specifying the DateTime format as ISO 8601:

    Snag_14f3459e.png


    Ellis
    ____________________________________
    If I have answered your question, please mark the post as Solved.
    If you like my response, please give it a Thumbs Up.

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