How to add KB contributor in approval/rejection mail, while sending a notification?

AmitK1382912422
Tera Contributor

Hi,


Could someone please assist me in adding the KB Contributor to the approval/rejection email notifications?

 

Thanks & regards,

Amit Kumar

1 REPLY 1

AnkaRaoB
Kilo Guru

Hi @AmitK1382912422 ,


To Add the KB Contributor as a recipient using an Advanced Recipient Script in the notification.

Steps to follow

  1. Navigate to System Notification --Email -- Notifications
  2. Open the Knowledge Approval / Rejection notification
  3. Go to the Recipients tab
  4. Enable Advanced
  5. Add the following script

Advanced Recipient Script

var kb = current.sysapproval.getRefRecord();

if (kb && kb.isValidRecord()) {

    answer = kb.kb_contributor; // or kb.author / custom contributor field

}

Notes

  • Works for both approval and rejection notifications
  • If the notification is based directly on kb_knowledge, you can instead add the contributor field under Users/Groups in fields
  • Replace kb_contributor with the correct field if your instance uses author or a custom contributor field

    If my response helped mark as helpful and accept the solution