How to pass catalog item variables to email notification

akriti2
Kilo Contributor

Hi all,

I have a multiple choice variable named dual_monitor on a catalog item. It has two values yes and no. Also, It is part of a variable set. Once the user   submits the order an event is fired which will send email notification to the approver to approve the requested item. How do I pass this variable and its value in the notification. I tried various combinations but unable to refer it. Below is email content. Also requested for field appears blank in the notification. Any suggestions?

find_real_file.png.

Thanks & Regards,

Akriti

1 ACCEPTED SOLUTION

I had a small typo. Instead of current.ref_sc_req_item.sysapproval.variables.<variable_name>, try



current.sysapproval.ref_sc_req_item.variables.<variable_name>



The "type casting" comes after, not before. By using "ref_sc_req_item", you are type casting sysapproval reference which is of type task. Using this syntax you can get not just the variables, but any other fields that are specific to the record that is type casted.


View solution in original post

15 REPLIES 15

shouvik
ServiceNow Employee
ServiceNow Employee

If your driving table is sc_req_item or sc_task, then tou can use current.variables.variable_name.



Thanks


Shouvik


PS: Hit like, Helpful or Correct depending on the impact of the response


akriti2
Kilo Contributor

Thanks for the reply Shouvik. The driving table is sysapproval_approver. I   had tried using ${current.variables.dual_monitor} but it did not work


Tadz
Tera Guru
Tera Guru

Hi, you can use: ${current.variables.variablename}



Thanks,


Tadz


akriti2
Kilo Contributor

Thanks for the reply Cris. The driving table is sysapproval_approver. I tried had tried using ${current.variables.dual_monitor} but it did not work