Business rule to check for approvals
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2023 11:53 AM
Hi All,
We have a before business rule on sysapproval_approver table whose job is to abort action on true of the following condition,
current.sysapproval.assigned_to == current.approver || current.sysapproval.requested_by == current.approver
I would like the condition to return false when approval source is from a specific table, for ex, 'std_change_proposal' but I don't want to disturb the current functionality. Please help me with the query. I tried the following but still it does not work.
(current.source_table == std_change_proposal)? 0 : current.sysapproval.assigned_to == current.approver || current.sysapproval.requested_by == current.approver
Please help me correct this. Thanks in advance.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2023 12:21 PM
Hi RFJ1,
you can move that logic to a Script for the BR.