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

SanjivMeher
Kilo Patron
Kilo Patron

Yes. You can send variables as well as field.


In To field select the field name.



In the message you can write



Hello ${current.request.requested_for}



find_real_file.png



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

can you help to get requested item name in the email body and subject?

Chuck Tomasi
Tera Patron

You don't really need the sys_id for the URL. You can use the ${URI} meta string to provide a link to the record.




Email Notifications - ServiceNow Wiki


Hello Thanks Chuck for the quick response however the URL is a field within a table and I will need to query the Glide record in order to get the URL and then put that into the Message field