Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Modify the recipient on Response Templates, other than "user_id"

heathers_
Kilo Sage

Is there a way to include additional recipients in the response email client templates other than the standard user_id? The response templates behave different, since the template triggers on the sys_email table. I've tried a few variations of dot walking the field.

 

heathers__0-1714490936596.png

 

1 REPLY 1

Kieran Anson
Kilo Patron

Hi,

Similar to reference qualifier fields, javascript can be used for more complex requirements. An example below returns the field name:

javascript: new EmailClientTemplateEvaluator().getRecipientsForReplyEmails(current)

If you want to get even more complex, you can return the email addresses as a comma-seperated string