Workflow Notification Activity vs Notification

MStritt
Tera Guru

On a regular Notification, I get a 'Users/Groups in fields' pick list where I can select a field off the RMR.

find_real_file.png

On the Notification Activity on the Workflow, I don't see/get it. Is this something I can add? I'm not able to navigate to a specific field (value) on the RMR where I want the email to be sent to. 

find_real_file.png

1 ACCEPTED SOLUTION

You can use answer = current.u_st_email;

 

But yes, as suggested by Mark, it is not recommended to use Workflow notification. You can use the Create Event activity instead and create an event Registry record and map the registry record to a notification. 


Please mark this response as correct or helpful if it assisted you with your question.

View solution in original post

14 REPLIES 14

SanjivMeher
Kilo Patron
Kilo Patron

According to the ServiceNow Docs, you need to use the Advanced checkbox and the use the To (script) to populate the To field based on a table field. There is not User/Groups in fields in Notification Workflow Activity

 

find_real_file.png


Please mark this response as correct or helpful if it assisted you with your question.

Thanks Sanjiv. 

Do you know how I need to configure the script, to use the value of u_st_email?

find_real_file.png

You can use answer = current.u_st_email;

 

But yes, as suggested by Mark, it is not recommended to use Workflow notification. You can use the Create Event activity instead and create an event Registry record and map the registry record to a notification. 


Please mark this response as correct or helpful if it assisted you with your question.

Sanjiv,

Would this be how it should be configured? Doesn't seem to be working.

// Set the variable 'answer' to a comma-separated list of user or group sys_ids that you want the email sent to.

if (current.u_st_email.sys_id.toString()) {
    answer = current.u_st_email;
}