Notification email w/ signature for different groups

DevtoSME
Giga Guru

I need to create a email script that will have the choice of two different signature blocks depending on the group type. there are 2 groups with 2 or more divisions. How do i go about creating a script that will check for the assignment group and group type and what will that's script look like? 

1 ACCEPTED SOLUTION

Sandeep Rajput
Tera Patron
Tera Patron

@DevtoSME You would need to create an email script which would check the assignment group on the current record and add the signature accordingly. Your script may contain the following check.

 

if(current.assignment_group=='<sys_id of first assignemtn group>'){
template.print('first signature');
}
else if(current.assignment_group=='<sys_id of second assignemtn group>'){
template.print('second signature');
}

Hope this helps.

View solution in original post

2 REPLIES 2

Sandeep Rajput
Tera Patron
Tera Patron

@DevtoSME You would need to create an email script which would check the assignment group on the current record and add the signature accordingly. Your script may contain the following check.

 

if(current.assignment_group=='<sys_id of first assignemtn group>'){
template.print('first signature');
}
else if(current.assignment_group=='<sys_id of second assignemtn group>'){
template.print('second signature');
}

Hope this helps.

Hi Sandeep,

 

thank you for this. Would this email script be in a business rule that triggers an event or would I input this as a advanced  email notification