Restrict creation of empty Time sheets via Time sheet portal.

bhanu27
Tera Expert
We see that when a user enters the timesheet portal (which defaults to the current reporting period), an empty timesheet for that period is created. As users navigate backward or forward in time, empty timesheets are being created for those reporting periods. Is it possible to stop ServiceNow from creating any new Timesheet unless the user places a time on that timesheet, regardless of if they enter hours or not?
1 REPLY 1

Vishal Jaswal
Giga Sage

Hello @bhanu27 

Out of the box, an empty Timesheet in the Time Sheet Portal i.e. without any timecard cannot be submitted - You can validate the same in your PDI:

Current Week:

VishalJaswal_0-1778612921750.png

Historic Week:

VishalJaswal_1-1778612977182.png


The above error or such restriction is due to out-of-the-box Script Include "TimeSheet" function:

VishalJaswal_2-1778613528048.png

You can revert to the original version if this Script include is updated or has many versions to it.


Hope that helps!