Assigned to / requested by person cannot approve its own Normal change request
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2024 12:05 AM
Hi All ,
I have a requirement , where the person who is an assigned to or requested by for Normal change request , the person should not be able to approve its own normal change in any level of approval process and it should show as not required for the assigned to / requested by person.
I have written an after insert update Business rule on the sysapproval_approver table , but it is allowing the user at the third level of approval to approve/reject the change request
Script :
Code :
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2024 12:58 AM
Which approval step is the third level? How is that set?
Next to that: does the 'not required' also prevents the approver from approving (can he lookup the approval record and set it to 'approved')? If that's the case, you will need some extra logic (or maybe even just delete the approval record).
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2024 06:56 AM
Hi Pooja,
Even though you set the state to "no longer required", the approver will still be able to change the state to approve, and the flow proceeds further. I believe a notification will also be triggered to the approver.
I encountered the same use case earlier and, as a solution, we aborted the creation of the approval record using a before-insert BR. This way, we can stop the notification without changing OOTB logic.
I started answering community questions recently. If my answer helped you in any way, please mark it as helpful or correct. It would be a great boost.