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 / Flow to send a recurri...
Power Automate
Answered

Flow to send a recurring email based on past due tasks

(0) ShareShare
ReportReport
Posted on by 8

I have created a SharePoint list to track CI projects at the facility I work at. I have a column where project owners will enter their target dates for project completion. I would like to send a recurring email on a monthly basis to project owners whose projects are not completed and the date is passed their target date. I have created two calculated columns to help me do this. The first column is "Completed?". This acts as a boolean column that returns a 1 if the project is completed and a 0 if it is not. The second column is "on_time?" This column is also a boolean column that will return a 1 if the current date is not passed the target date, and a 0 if the current date is passed the target date. 

 

I have started my flow using a recurrence. The I used the SharePoint "Get Items" step and connected it to my SharePoint list.  

Jake_Bildstein_0-1644433045350.png

 

 

From there I left the output as the default "value" as it is my understanding that this returns an array of all the items in the sharepoint list. 

 

I then move into two conditions. The first checks to see if the project is completed (ie if "Completed?" = 0). If it is not, it moves to the second condition to determine if the project is on time (ie if "on_time?" =0). If it is not true, I then send an email to the project owner asking them to update their project etc.

 

Jake_Bildstein_1-1644433286688.png

 

 

My issue comes from the first condition, which always returns false, meaning that all the projects are complete, except that is not true. There are several projects that are not complete and therefor return a "0" in the column:

 

Jake_Bildstein_2-1644433763318.png

 

 

I am wondering if using "get items" is not the way to obtain the data I need. Any help is appreciated! 

 

Thanks, Flow Problem 1.PNGFlow Problem 2.PNGFlow Problem 3.PNGFlow Problem 4.PNG

 

Categories:
I have the same question (0)
  • mattias1172 Profile Picture
    385 on at

    My best guess is that the issue lies within the boolean values being returned from SharePoint for Completed and On Time. The logic itself works when Power Automate is expecting and getting integers. 

     

    flow1.png

     

    You may need to either convert the SharePoint values to integers or try using an expression to check for boolean values. 

  • Jake_Bildstein Profile Picture
    8 on at

    Thank you for the reply, both the columns for "Completed?" and for "On_Time?" are returning integers already:

     

    Jake_Bildstein_0-1644487441640.png

     

     

    Looking at the past runs, the input into the first condition is showing as "false"

    Jake_Bildstein_1-1644487681403.png

     

     

    Which confuses me, because the input should be the information stored in the "value" array, not a true or false statement

  • Verified answer
    v-LilyW-msft Profile Picture
    on at

    Hi @Jake_Bildstein 

    Please try to put double quotes around 0 like below and try again.

    vLilyWmsft_2-1644560603722.png

    You can add a Compose action to look the output of ‘Completed’, you will find that the output result is a string.

    vLilyWmsft_3-1644561225731.png

    Best Regards,

    Community Support Team _ Lily
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Jake_Bildstein Profile Picture
    8 on at

    Placing quotes around the 0 worked. I guess even though sharepoint was returning an integer, the flow still had the value as a string.

     

    Thanks!

    -Jake 

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

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard