cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
3R-Automation
Helper I
Helper I

Alert to submit timesheet hours

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. 

4 REPLIES 4
rajatkush94
Frequent Visitor

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.

 

abm
Super User III
Super User III

Hi @3R-Automation 

 

Where is your timesheet data stored? Are the users are office365 users?

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blogPower Automate Video Tutorials

All users are Office365 users, and the timesheet data is saved in a SharePoint List.

abm
Super User III
Super User III

Hi @3R-Automation 

 

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.

 

image.png

 

 

The expression I used is as follows:

 

Check against todays date

 

formatDateTime(utcNow(),'yyyy-MM-dd')
 
Record count
 
length(body('Get_items'))
 
If you need any further help in this please let me know.
 
Thanks


Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blogPower Automate Video Tutorials

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (44,237)