- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2018 05:07 AM
Hi Team,
Let's say A B C are three approvers for a particular requested item now for example A rejected his approval request,
IN B and C approval records rejection note needs to be populated in comments as "The Approval request has been rejected by A".
Let's say if A approvers his approval request then the same approval note needs to be populate in comments as "The approval request has been approved by A no action required".
Please respond how to achieve this requirement awaiting for your reply.Thank you in advance.
Solved! Go to Solution.
- Labels:
-
Team Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2018 10:45 PM
Hi,
Instead of adding comments , you can define in activity :
Wait for | A choice between different approval logics to determine which individual approvals result in approval of the activity's approval. Options are:
|
When anyone rejects |
A choice between different approval logics to determine which individual rejections result in rejection of the activity's approval. Options are:
Note: Note that if Wait for is set to Anyone to approvethen a single approval will cause the activity to complete with a result of approved even if one or more users reject.
|
However, if you do not want to follow above, then create a business rule (before on update) on approval table with below condition and script
condition = state changes to reject
var gr1 = new GlideRecord('sysapproval_approver');
gr1.addQuery('document_id', current.document_id);
gr1.addQuery('sys_id', '!=', current.sys_id);
gr1.query();
while(gr1.next()){
gr1.comments = "Approval Rejected by "+current.;
gr1.update();
Same can be done for approval approved
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2018 08:50 AM
Hi Rahul,
Thank you for the help, script looks good and working fine.
what does the line"gr.addQuery('document_id', current.document_id);" in the below script. please extend your help by explaining that specific line in the script.