If requested by is member of Assignment group then restrict his/her approval.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2023 05:30 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-14-2023 09:13 AM
Hi,
You should write Befor BR on the sysapproval_approver table.
conditions -
state - changes to assess
Script:
if(gs.getUser().isMemberOf(current.sysapproval.assignment_group))
{
gs.addErrorMessage('As the requester and a member of the assignment group, you cannot approve this change.');
current.setAbortAction(true);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-14-2023 09:41 PM
Hi,
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 change request )
I want to restrict that approval to approval their own change request

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-14-2023 09:58 PM - edited ‎12-14-2023 09:59 PM
Hi @suha2 you can write a BR before update on sysapproval_approver table to abort the submission if requested for is the approver.
Script:
//login user is requested for
if(gs.getUserID() == current.sysapproval.requested_for)
current.setAbortAction(true);
gs.addInfoMessage('You cannnot approve your own request');
}
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2023 01:08 AM
Hi,
I can write a BR before update on sysapproval_approver table but
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