- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2023 11:45 AM
Hello All,
I have customised Work Flow for KB Article publishing, where two levels of approval will be triggered in review stage. Approval part is working fine, but for second level approvers email notifications are not triggering.
I checked the notification configuration, it seems good, I'm not sure if I'm missing anything.
Can someone please help me here.
Thanks in Advance!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2023 12:43 AM
Hi @SRAVANTHI NALAB ,
Check does the user has email address or not, if the user has email address then the issue might be in the Advanced Condition script part of the email notification "KM: Approve article for publishing".
Because, the script checks whether article is in Draft stage or not, but you mentioned that you are triggering the approvals in Review stage. Change the script to below one.
if(gs.getProperty('glide.knowman.enable_approval_notification','false') == 'true') {
if(current.document_id && (current.document_id.workflow_state == 'draft' || current.document_id.workflow_state == 'review') ){
answer = true;
} else {
answer = false;
}
} else {
answer = false;
}
answer;
Thanks,
Anvesh
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2023 12:43 AM
Hi @SRAVANTHI NALAB ,
Check does the user has email address or not, if the user has email address then the issue might be in the Advanced Condition script part of the email notification "KM: Approve article for publishing".
Because, the script checks whether article is in Draft stage or not, but you mentioned that you are triggering the approvals in Review stage. Change the script to below one.
if(gs.getProperty('glide.knowman.enable_approval_notification','false') == 'true') {
if(current.document_id && (current.document_id.workflow_state == 'draft' || current.document_id.workflow_state == 'review') ){
answer = true;
} else {
answer = false;
}
} else {
answer = false;
}
answer;
Thanks,
Anvesh
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2023 07:33 AM
Hi @AnveshKumar M ,
Thanks for the solution.
Instead of modifying the OOB notification, I created another notification with the script above.