Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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!

  • telu Profile Picture
    Microsoft Employee on at
    Re: Date string comparison: am I doing something wrong?

    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

  • efialtes Profile Picture
    350 on at
    Re: Date string comparison: am I doing something wrong?

    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

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow