Approval notification to user RITM

federica_marita
Kilo Contributor

I would like to send an e-mail to user requested an item from the Approval table, if the approval is rejected.

I created an e-mail in Notification module and I set these parametres:

  • Table: Approval;
  • When to send:
    • Inserted/updated
    • Condition: State is Rejected;
  • What it will contain:Approver: ${approver}.Comments: ${comments}.
  • Who will recieve: I can't find Users/Groups in fields I wuold. I selected 'Approval for' and all fields of RITM but I can't find 'request.requestfor' ( that is the user I wuold like to send the email to).

Can anyone help me?

8 REPLIES 8

Nate23
Mega Guru

Correct me if I'm wrong but, I believe the requested for comes from the request not the ritm. so try drilling into the request.



I usually would just do this through an event and script the condition and the who will receive.


Mihir Mohanta
Kilo Sage

You can add a notification activity after reject path of approval activity in the workflow.


There you can add requested for user as recipient of email and also email content as you want.


So is it possible only in the workflow activity? Because I am using Servicenow Express and workflow activity is not present.



Thanks,


Federica


nyancer3
Tera Expert

Is there a reason you need to send from the approval table and not the Requested Item table when the "Approval" attribute changes to "Rejected?" From the Approval table, it does not look like you can get to the "Approval For.Request.Requested For" field, as you only have "Task" fields to select from and Request is a field on the Requested Item table.



You *should* (I say should because you never know with Express) be able to get the data you want from Approval History field (who approved/rejected and any comments) on the Requested Item.



So it should look like:


Table: Requested Item


When to Send: Inserted/Updated


Condition: Approval Changes to Rejected


What it will contain: [Approval History]


Who Will Receive: Users/Groups in Field = Request.Requested For



Hope that helps.



Thanks,


Nick