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
See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.
Many congratulations to the Season 1 2021 Flownaut Crew!
ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.