File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
Server-Side Components/Business Rules/Auto-approved opened by is approver Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 1+ > ** When a new Approval record (sysapproval_approver table) is created**
2+
3+ 1 . Create a Before Business Rule on the Approval (sysapproval_approver) table.
4+
5+ 2 . Check if the table of the record being approved is the Requested For table.
6+
7+ 3 . If it does:
8+
9+ Verify whether the Approver (approver) is the same as the Opened by (opened_by) field on the related Requested For record.
10+
11+ If both match:
12+
13+ Automatically approve the approval record.
14+
15+ Add appropriate approval comments (e.g., “Auto-approved since approver is the requestor (Opened By).”)
16+
17+ Use setWorkflow(false) to prevent triggering additional workflows or business rules.
You can’t perform that action at this time.
0 commit comments