Get value of another table in Notification

mauro23
Kilo Contributor

Hi , i created a Notification in sys_approver table. In section What it will contain, i want to show or to get value of field of another table? i try to do this: 

${{table_name.field_name}} 

 

 

is this the correct way?

4 REPLIES 4

BalaG
Kilo Sage

Hi @mauro23  note that notification works at a record level of the record that triggered the notification. so what you are trying to do won't work.

BalaG
Kilo Sage

Hi @mauro23  note that notification works at level of record that triggered the notification; so your approach won't work.

Prasanna Phadt1
Tera Contributor

Hey, 

 

 

In ServiceNow, to reference a field from another table in a notification, you can use the standard dot-walking syntax. However, the correct syntax does not include double curly braces (${{ ... }}). Instead, you can use a single set of curly braces with the dot-walking syntax like this:

 

 
${table_name.field_name}

 

Thanks!

Anand Kumar P
Giga Patron

Hi @mauro23 ,

If you have reference field  in sys_approver table for target field then you can use 
${user.phone} //user table phone number field.


If you dont have refrence then you have to create mail script glide that target table and print in email script and use in notification like ${mail_script:yourmailscriptname}

 

Please mark it as helpful and solution proposed if it serves your purpose.

Thanks,

Anand