You need to sign in to do that
Don't have an account?
RohanSharma8791
Hours(Decimal)
Date(Date)
Description(Text)
User(Lookup)
Write a trigger on insert and update to show an error to the user when the total number of hours for a specific date is greater than 24.
Write a trigger on insert and update to show an error to the user when the total number of hours for a specific date is greater then 24
- Create a new object Time Tracking with the following fields:
Hours(Decimal)
Date(Date)
Description(Text)
User(Lookup)
Write a trigger on insert and update to show an error to the user when the total number of hours for a specific date is greater than 24.
The trigger logic can be like below.
If this solution helps, Please mark it as best asnwer.
Thanks,
All Answers
The trigger logic can be like below.
If this solution helps, Please mark it as best asnwer.
Thanks,
You mean that it should group by user and date?. If so can you create an another question for the same. As it would be followup question.
Thanks,