Using workflow to send and Emails

agarc657
Giga Contributor

Hello Everyone,

I have a pretty long question and i apologize for the length but im very new to ServiceNow (a week) and was wondering if someone could help me.

Ok so this Is what I want to do, I have a Catolog item that deals with resting passwords. The types of programs are in a List and have a field

called "can_fufill". This field is a Bool value that is true if we have the URL to send to the user , so they can reset the password. If the Bool value is

false then we do not have the link and we must send the link to the IT team to deal with it as they see fit.

the workflow looks like this

workflow.PNG

So my "if" is working as intended . However the "Notification" is not. As my understanding of how ServiceNow works is limited. This is what I would like to do

The current user is who I want to send the email to ,

First:

I will need to grab the current users Email

Second:

I will need to query to grab name of the Software name   or sys_id to query he glide record for the URL

Third:

i need to be able to send an email with this information contained within it.

I have read a lot about email scripts but im still confused on how to get all the information I need . Does an email script have visibility into my catalog item to be able to grab the

Software Name needed to do the glide record query?

This is how my notifications is currently set up but it does not   send an email to my email.

notification.PNG

I know that im missing something and Im sorry if this is unorganized. any help would be appreciated .

5 REPLIES 5

If URL is a field (I'll assume it's called u_url, you can adjust as necessary), why not use something like:



URL: ${u_url}



??? Use the field chooser on the right of the HTML message body to find fields and place their values in the body.