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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Apply to each not work...
Power Automate
Answered

Apply to each not working for excel date lookup with condition

(0) ShareShare
ReportReport
Posted on by 29

I'm try to create a flow that seems pretty straightforward. However, the flow passes testing but does not send an email.  Do I have to create an expression for a date conversion or another action for the condition within Apply to each?  I look forward to feedback from the community.

 

1. Lookup date in Excel table (the Excel file is housed in my business One Drive and contains a table name)

krabotte_1-1651160374149.png

2. If today's date = date in Excel table (anniversary column)

3. Use Outlook365 to send email

 

krabotte_0-1651160055946.png

 

Categories:
I have the same question (0)
  • ScottShearer Profile Picture
    25,290 Most Valuable Professional on at

    @krabotte 

    Change the date in your condition to 2022-04-28 and make sure that the List rows action has the date format set to ISO 8601

  • krabotte Profile Picture
    29 on at

    Scott, 

    Your suggestion doesn't work for me.  The flows run successfully because none of the conditions is marked as true.  However, the second row in the file should be true because the date matches the output.  Any other ideas?

     

    Outputs.PNGFalse Inputs.PNG

     

  • Verified answer
    ScottShearer Profile Picture
    25,290 Most Valuable Professional on at

    @krabotte 

    Note the date format of the anniversary in the output - it is in the yyyy-MM-dd format.

    Did you change the date format of your date to 2022-04-28 ?

     

    You are better off using a filter query instead of a condition anyway - see my screen shot below - it works for me:

    image.png

     

  • krabotte Profile Picture
    29 on at

    Yes.  I entered the date manually (2022-04-28) for testing purposes.  However, I will like to use today's date in the final solution.  Should I use the formatDateTime(utcnow) expression? 

  • Verified answer
    ScottShearer Profile Picture
    25,290 Most Valuable Professional on at

    @krabotte 

    See my suggestion above to use a filter query instead.  Please let me know if it works for you.

  • krabotte Profile Picture
    29 on at

    One last question for you, Scott, (Your solution above did work, by the way.  Thanks!)

     

    What expression could I use to filter the anniversary date value by today's date?  I plan on running this as a scheduled flow and I would like it to send an email if the date for anniversary = today's date.

  • krabotte Profile Picture
    29 on at

    After stepping away and coming back, I got it to work as intended using your filter suggestion, Scott.  Much appreciation for the guidance!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 251 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 239

#3
Expiscornovus Profile Picture

Expiscornovus 220 Most Valuable Professional

Last 30 days Overall leaderboard