If requested by is member of Assignment group then restrict his/her approval.

suha2
Tera Contributor

Hi,

Approval Require in Assess State :-Any 1 member can approve from Assignment Group.

if requested by is member of Assignment group then restrict his/her approval.

In change request table when the state is moved to assess, I want to allow approval for member of the assignment group suppose the request by field user is in that assignment group means they not approval that request .can anyone help me this scenario.

6 REPLIES 6

SunilKumar_P
Giga Sage

Hi @suha2 , You can try creating a Before Insert business rule on sysapproval_approver table to set that particular approval to no longer required along with a comment with the below script.

 

if (current.approver.isMemberOf(current.sysapproval.assignment_group)) {
    current.state = 6; // No longer required
    current.comments = "This approval is marked as 'No Longer Required' as the Approver is member of the Assignment Group";
}
 
You also need to have a condition to make sure that the source table is Change_Request so that this BR wont affect the approvals on the other tables.
 
Regards,
Sunil

 

Hi,

I try this solution but it approval that change request but I want to restrict that approval for their own request 

In change request, The request field user is approval their own request means it approval that change request but I want to  restrict his/her approval for their own request 

Here Requested by : Fred luddy  (In related record approval fredy luddy approval their own request means it show approval  the change request )

 I want to restrict that approval  to approval their own  change request 

 

suha2_0-1702900484731.png