We have a Timesheet app, where the user must submit them to kick off the generation of reports. However, we need an alert which can check the current list of timesheets and determine which employees have not submitted their timesheets for the week and then remind them with an email. I know I can run a recurring flow but I'm not sure if I can do the logic required to evaluate the employees and a comparison of the current date and what is in the Timesheet list.
You can run schedule flow which run weekly, Then use Get Past time action to get past date, unit will 7 days.
You should have two data source one holding data of employees and other for timesheets.
Then loop all employees to check if they have submitted timesheet for this week.
The timesheet data source should have data for each employee for each week so check the created date for timesheet should be greater than Past time if record is found then do nothing else send email to the employee asking to submit the timesheet.
Thanks for your quick reply. Please follow the steps. Here I assume you have the user email is stored in SharePoint. So I am using that as the identifier for the filter to check against the email and createdon date is today to determine whether the timesheet is created or not. You can change the filter accordingly. Next step I am checking the record count is zero then send email reminder.
The expression I used is as follows:
Check against todays date
Check out new user group experience and if you are a leader please create your group
On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks
Check out how to claim yours today!
Test your skills now with the Cloud Skill Challenge.