How to dot walk Document Id field in Notification?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2022 03:01 AM
Hi,
I am having Trigger Id field which is of type documentId which is referencing incident table record.
So from notification fields can we achieve this?
I tried Dear ${trigger_id.caller_id.getDisplayValue()}, but it is not displaying anything
Regards,
Gayathri
- Labels:
-
Personal Developer Instance

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2022 03:04 AM
Hi
On which table you are triggering this notification?
Thank you
Prasad

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2022 03:06 AM
What table notification is on
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2022 03:37 AM
Notification on assessment instance table

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2022 04:04 AM
1. Create a mail script named: getcallernamedetails
2. Script as below
(function runMailScript(current, template, email, email_action, event) {
var triggeridis = current.trigger_id; //will give you sys_id of record
var getcallername = new GlideRecord('incident');
getcallername.addQuery('sys_id', triggeridis);
if (getcallername.next()) {
template.print('Caller is ' + getcallername.caller_id.getDisplayValue());
}
})(current, template, email, email_action, event);
Call mail script in the notification as
${mail_script:getcallernamedetails}
Above will work hoping the caller_id field you referring to is on incident table.