- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-07-2018 05:42 AM
Hi All,
I am really hoping someone can help.. I am trying to send an email to the Knowledge article author when their article is rejected.
It should go to the author and contain the comments for why it was rejected.
I tried building the notification on the sysapproval table but can't dot walk "author" in the who to send to section because knowledge isn't extension of task table.... I can select author but it gets sent to no one..
Can someone please help? It seems like this should be pretty standard functionality to send an email to author when their article is rejected...
thanks all!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-07-2018 05:49 AM
Thanks - I will mark correct when I (hopefully) get it to work!
Appreciate your feedback very much!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-03-2018 04:51 AM
Hi Palmen,
Thanks for the help. It works for me and now can you please explain this part of code for my understanding-
var posEnd = rejectComment.indexOf('(Comments)');
posEnd = posEnd + 10; //Adding 10 to get the possition after (Comments)
var substrComment = rejectComment.substring(posEnd);
template.print(substrComment + '<br/>');
Regards,
Kumar Nandan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-03-2018 11:02 AM
indexOf will get the position of (Comments) in the text string, it'll be a number for the position where it finds (Comments) in the text string (start of where it finds it). This number is stored into the posEnd variable.
Since (Comments) is 10 characters, I'm then adding 10 to this number to get the position where (Comments) end in the string.
substring will then remove everything in the string before the end of (Comments). This means all info of who rejected and time and whatever it starts with will be removed and you'll only get the actual comment.
template.print will print the string into the mail notification.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2018 12:34 AM
Did you get it to work?