send notifications to translated version authors of kb article when parent article is updated
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Highlight
- Report Inappropriate Content
yesterday
I want to send notifications to all translated version authors of kb article when linked parent article is submitted for review.
anyone who already implemented this can share their thoughts.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Highlight
- Report Inappropriate Content
yesterday
Hi @vivek11,
This is not available out-of-the-box, but you can achieve it by triggering a notification when the parent article moves to “Submitted for Review” and then fetching all its translated versions.
Maybe this below script will help you:
(function executeRule(current, previous /*null when async*/) {
if (current.workflow_state == 'review' && previous.workflow_state != 'review') {
var translatedGR = new GlideRecord('kb_knowledge');
translatedGR.addQuery('translation_of', current.sys_id);
translatedGR.addQuery('active', true);
translatedGR.query();
while (translatedGR.next()) {
if (translatedGR.author) {
gs.eventQueue(
'kb.translation.review.notify',
current,
translatedGR.author.toString(),
translatedGR.number.toString()
);
}
}
}
})(current, previous);
Let me know if this helps!!!😉
If you find my answer useful, please mark it as Helpful and Correct. 😊
Regards,
Soham Tipnis
ServiceNow Developer || Technical Consultant
LinkedIn: www.linkedin.com/in/sohamtipnis10
