Workflow Notification (Advanced Script)

Dazler
Mega Sage

Hi,

I am hoping someone can assist me.  I am having a problem with the Advanced Script in the Workflow Notification. I have to send a notification also to the user on the catalog form variable field.  The user is in a reference field, I have tried several things, but it seems to only send an email to the 2nd email after the comma (acessrites@test.com).

I have tried different approaches, but to no avail.

answer = (current.variable_pool.st_employeename.email);

Am I missing something?

 

find_real_file.png

1 ACCEPTED SOLUTION

ARG645
Tera Guru

To understand why its not working, you need to know how recipients list works for the emails in ServiceNow. A recipient list will be filtered for valid email addresses before sending an email. 

So your recipient list according to your code is 

find_real_file.png

So your code should be something like this below 

answer= current.variables.st_employeeemail.email+",acessrites@test.com";

View solution in original post

6 REPLIES 6

Thank you! The notification is just a one-time notification. The recipient is just sent it once to notify them that a user is going on leave of absence.

You are welcome.  I just make a habit of never doing it right in the Workflow.