Pull reference variable value into email notification

nicolemccray
Tera Expert

I'm trying to pull in the display value of my reference variable 'vend_name', but will not work.   The 'Requested For First Name' is pulling in as expected:

Hello ${request.requested_for.first_name},

Your request for a New Mexico Non-Taxable Transaction Certificate (NTTC) for ${current.variables.vend_name.getDisplayValue()} has been completed. Please find attached the certificate for your use.

1 ACCEPTED SOLUTION

Nicole, you don't need to use a mail script and that is causing the extra line.   Use the following instead:


Hello ${request.requested_for.first_name},


Your request for a New Mexico Non-Taxable Transaction Certificate (NTTC) for ${request_item.variables.vend_name} has been completed. Please find attached the certificate for your use.


Thank you,


View solution in original post

22 REPLIES 22

Mike Patel
Tera Sage

Did you try just using ${current.variables.vend_name}


Neither of these worked, unfortunately.


Make sure that variable exist on the ticket.


Michael Ritchie
ServiceNow Employee
ServiceNow Employee

You actually don't need to use getDisplayValue().   ServiceNow will automatically include the display value so just use:


${current.variables.vend_name}