Email notifications are not triggering for Second level approval KB Article Publish work flow

SRAVANTHI NALAB
Tera Contributor

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!

1 ACCEPTED SOLUTION

AnveshKumar M
Tera Sage
Tera Sage

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

 

Thanks,
Anvesh

View solution in original post

2 REPLIES 2

AnveshKumar M
Tera Sage
Tera Sage

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

 

Thanks,
Anvesh

Hi @AnveshKumar M ,

Thanks for the solution.

Instead of modifying the OOB notification, I created another notification with the script above.