How to auto approve time card and time sheet for particular one user and state should also show appr

mania
Tera Contributor

Hi,

How to auto approve time card and time sheet for particular one user submit the time sheet from the timesheet portal and state should also show approved for Both time card and time sheet tables

I have tried the below scripts but that state show only submitted for both time card and time sheet but it should be approved.

Can you please provide business rules steps, It will be helpful.

mania_0-1704451685425.png

mania_1-1704451685437.png

mania_2-1704451685442.png

mania_3-1704451685453.png

 

Thanks in Advance!

1 REPLY 1

CezaryBasta
Tera Guru

I see you are using current.update() in before insert BR - this could cause issues. It makes no sense to update a record before it is inserted.

Have you tried using the auto approval functionality of the time card policy? Read more here.

--
See more of my content here.