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 / Calculate the number b...
Power Automate
Answered

Calculate the number between Two Dates (Day in Sharpoint List and Today) to send email (for incomplete status) .

(0) ShareShare
ReportReport
Posted on by 50

I want to create a flow that will send me an email how many days are left in the Incomplete task (remaining days). I entered the command exactly as it is shown in the image, but the Action 'Condition' failed. How do I correct this?

 

Action 'Condition' failed:

Unable to process template language expressions for action 'Condition' at line '0' and column '0': 'The template language function 'less' expects two parameter of matching types. The function was invoked with values of type 'String' and 'Integer' that do not match.'.

 

1.png

 

 

 

Flow :

 

2.png3.png4.png5.png6.png7.png

 

Output that i want :

 

S__19849218.jpg

Categories:
I have the same question (0)
  • lbendlin Profile Picture
    8,551 Super User 2026 Season 1 on at

    No need to use FormatDateTime.  Use utcnow()  as is.

  • YanisaSC Profile Picture
    50 on at

    thank you for helped me.

     

    I have changed the command to just utcnow() but it gives error like in the picture.

     

    1.png

  • Verified answer
    v-dezhili-msft Profile Picture
    Microsoft Employee on at

    Hi @YanisaSC 

     

    Please try:

    int(split(dateDifference(outputs('Get_item')?['body/Day'],utcNow()),'.')[0])

    vdezhilimsft_0-1675061121057.png

    vdezhilimsft_1-1675061137815.png

    vdezhilimsft_2-1675061167185.png

     

    Best Regards,

    Dezhi

     

     

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

#2
Haque Profile Picture

Haque 52

#3
Ellis Karim Profile Picture

Ellis Karim 51 Super User 2026 Season 1

Last 30 days Overall leaderboard