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.
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.
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:
I am wondering if using "get items" is not the way to obtain the data I need. Any help is appreciated!
Thanks,
Solved! Go to Solution.
Please try to put double quotes around 0 like below and try again.
You can add a Compose action to look the output of ‘Completed’, you will find that the output result is a string.
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.
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.
You may need to either convert the SharePoint values to integers or try using an expression to check for boolean values.
Thank you for the reply, both the columns for "Completed?" and for "On_Time?" are returning integers already:
Looking at the past runs, the input into the first condition is showing as "false"
Which confuses me, because the input should be the information stored in the "value" array, not a true or false statement
Please try to put double quotes around 0 like below and try again.
You can add a Compose action to look the output of ‘Completed’, you will find that the output result is a string.
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.
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
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
65 | |
23 | |
16 | |
15 | |
11 |
User | Count |
---|---|
116 | |
35 | |
30 | |
28 | |
26 |