Working on workflow to allow employees to create autoapprove request to access workloads during office hours. Office timing is from 8AM EST to 5PM EST. Please share the variables to be used in workflow condition.
Solved! Go to Solution.
Try to use this to get the system date and time when request generated compare with the range you looking for (try with or without groovy as expression language)
calendar.get(Calendar.HOUR_OF_DAY)>7 and calendar.get(Calendar.HOUR_OF_DAY)<18
Below are the log details
Hey try below, Also make sure if you need time/hour in different time zone please change highlighted section accordingly.
Thanks Saathvik. It worked.
To above condition now I am planning to add condition where only employee usergroup will be able to go for auto approval. Contract usergroup should go for manager approval.