Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Email Notification Sent to "Requested For" Variable

James Turney
Tera Contributor

Hi,

 

 I am tasked with creating an email notification that will be sent out to an end user once their Request Item has been completed and I have not been successful. I have created a notification that will send once the Task in the workflow is complete but the email contains hyperlinks and the workflow notification only displays text. I then created an email notification that will send out once the request item has been closed, this method will show the HTML but I have had no luck in sending it to the "requested for" user. I'm sure I'm overlooking something here but can't seem to find the answers. 

2 ACCEPTED SOLUTIONS

Yousaf
Giga Sage

Hi James,
Did you try selecting the field 'requested for' in your notification.
and trigger condition to be when triggered. 


***Mark Correct or Helpful if it helps.***

View solution in original post

kamlesh kjmar
Mega Sage

Hi @James Turney ,

 

In order to send email to Requested for you will have to do a dot walk, as requested for field belongs to request table. You need to do dot walk as shown in below screen shot :

 

kamleshkjmar_0-1666977481004.png

I Hope this helps.

 

Please mark this helpful if this helps and Accept the solution if this solves your issue.

 

Regards,

Kamlesh

 

 

View solution in original post

4 REPLIES 4

Yousaf
Giga Sage

Hi James,
Did you try selecting the field 'requested for' in your notification.
and trigger condition to be when triggered. 


***Mark Correct or Helpful if it helps.***

kamlesh kjmar
Mega Sage

Hi @James Turney ,

 

In order to send email to Requested for you will have to do a dot walk, as requested for field belongs to request table. You need to do dot walk as shown in below screen shot :

 

kamleshkjmar_0-1666977481004.png

I Hope this helps.

 

Please mark this helpful if this helps and Accept the solution if this solves your issue.

 

Regards,

Kamlesh

 

 

Jimmy45
Giga Guru

Is this a workflow notification or is this an event that is triggered by the workflow to send a notification?  If it is an event, ensure the following is done:

 

First, let's make sure your variable value is actually requested_for

 

Next...

 

Place the event where you need it to be within the workflow, but before END

Jimmy45_1-1666978426787.png

Drag and drop it to the workflow just before "END"

Jimmy45_2-1666978488149.png

  1. Name the event action for the workflow
  2. Choose the event you created in the event registry

If you have not created an event, then click the  Jimmy45_3-1666978552354.png icon and click NEW

Event name: event.name.event

Table: sc_req_item

Fired by: Whatever you want - Ex. Workflow <workflowname>

Description: Whatever description you want.

 

 

Now navigate to the notification you created

Jimmy45_0-1666978241866.png

  1. When to send tab:  Send when = Event is fired
  2. Event name: Choose the event you just created from this list

Who will receive tab

dot walk the Users/Groups in fields

Request>Requested for

 

OR

 

Choose to send to event creator.

 

 

Hope that helps! 😊

I hope this helps!

James Turney
Tera Contributor

Thank you everyone! Using Request.Requested for worked perfect. I knew it was going to be something simple I was missing. Appreciate the quick help!