How to get RITM variables in Notifications
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2024 02:51 AM
Hi,
I have created a one notification on 'Catalog Task' table, but I have to show catalog item variables in that notification.
Please suggest how I can show the variables.
Thank You.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2024 03:08 AM
There is a really good easy to follow blog on this here:
In your Mail Script you can use the syntax current.variables.variablename;
You may want the DisplayValue in which case use: current.variables.variablename.getDisplayValue();
Example:
In your Mail Script use:
var custName = current.variables.customer_name.getDisplayValue();
template.print(custName)
💡Remember to include your Mail Script in the Notification using syntax:
${mail_script:show_customer_name_variable} or whatever the name of your mail script is.
Regards
Paul