- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-16-2020 11:34 AM
On a regular Notification, I get a 'Users/Groups in fields' pick list where I can select a field off the RMR.
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.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-16-2020 11:45 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-16-2020 01:33 PM
Can you confirm, it is a reference field and referencing the sys_user table. And try with this.
Try with below code.
if (current.u_st_email) {
answer = current.getValue('u_st_email');
}
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-16-2020 01:41 PM
Actually, it's a string field. I'll try your update.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-19-2020 01:38 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-19-2020 01:43 PM
Does this user have an user account in Servicenow? Also can you confirm u_st_email is a field on the table where you are running this workflow on?
Can you try
var u = new GlideRecord('sys_user');
u.addQuery('email',current.u_st_email);
u.query();
if (u.next())
{
answer = u.sys_id;
}
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-19-2020 02:14 PM