The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Business rule to check for approvals

RFJ1
Tera Contributor

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

Bert_c1
Kilo Patron

Hi RFJ1,

 

you can move that logic to a Script for the BR.