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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Calculate the number b...
Power Automate
Unanswered

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,474 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard