Skip to content

Commit 823cc2b

Browse files
authored
ReadMe.md
1 parent a1f42f4 commit 823cc2b

File tree

1 file changed

+17
-0
lines changed
  • Server-Side Components/Business Rules/Auto-approved opened by is approver

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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.

0 commit comments

Comments
 (0)