Is it possible to send an email notification/template to a user that is referenced in a catalog item

lando321
Tera Contributor

Hello all,

 

I was wondering if it is possible to send an email notification/template to a user that is referenced in a catalog item variable, let say the variable name is "first_user", i want to send an email notification/template triggered by an event in the workflow to current.variables.first_user.manager? Is this possible? In the notification , i do not see anything in the who section that would allow for this. Just want to see if its possible and if anyone else has done anything similar.

lando321_0-1691201126144.png

 

1 ACCEPTED SOLUTION

Try below script.

var eventParm1 = current.variables.first_name;

gs.eventQueue("your event name", current, eventParm1);

refer below link:

https://www.servicenow.com/community/developer-forum/pass-a-variable-value-into-parameter-1-in-a-cre...

Please Mark the Answer as correct solution and helpful if helped!

 

Kind Regards,

Ravi Chandra.

View solution in original post

3 REPLIES 3

Ravi Chandra_K
Kilo Patron
Kilo Patron

Hello @lando321 

when triggering event, you cab add the manager as parameter in gs.eventqueue.

and in the Notification, select event Param 1 contains receiptient.

That will send notification to the variable in the form.

refer:

https://www.servicenow.com/community/developer-forum/hover-text-help-text-on-form-field-which-extend...

Please Mark the Answer as correct solution and helpful if helped!

 

Kind Regards,

Ravi Chandra.

Could you send me the link again. The link above looks like it references another issue. And thanks for replying

 

Try below script.

var eventParm1 = current.variables.first_name;

gs.eventQueue("your event name", current, eventParm1);

refer below link:

https://www.servicenow.com/community/developer-forum/pass-a-variable-value-into-parameter-1-in-a-cre...

Please Mark the Answer as correct solution and helpful if helped!

 

Kind Regards,

Ravi Chandra.