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 / Date string comparison...
Power Automate
Unanswered

Date string comparison: am I doing something wrong?

(1) ShareShare
ReportReport
Posted on by 350

Hi all

I have defined a flow triggering everytime a new item is stored on a sharepoint list. 

The flow evaluates the content of the column "Fecha" (date) and sends an email with different Subject if it is greater (or not) than utcnow()-1. The body of te email includes the date obtained from the Sharepoint item.

 

Surprisingly, no matter I store a date from next year, or a date from last century, the condition evaluation resulta is the same

 

Please see attached screenshot with the flow and the two emails received

date_comparison.png

 

This kind of date comparisons used to work fine last May-June.

Suggestions are welcome

Thank you in advance!

Categories:
I have the same question (0)
  • efialtes Profile Picture
    350 on at

    I modified slightly the expressions compared in the condition block, to make sure I am comparing the same date formats, but it still fails

     

    Please see attached screenshot with the flow and the two emails received

     

    date_comparison_2.png

  • telu Profile Picture
    Microsoft Employee on at

    Hi efialtes,

     

    Could you just add the Fecha token(output) in the left, just like the left branch below instead of "triggerBody()?["Fecha"]", while in the right hand side, could you use adddays(utcnow(), -1)?

     

    Thanks

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 262 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 227

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard