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 04:17 AM
ya created email script,its working.
One doubt Click To Take Survey link is not working in Preview Email, meaning from here survey is not opening,what could be the issue?
From Assessments and Surveys this is working.
I have attached my code.
var link = new AssessmentUtils().getAssessmentInstanceURL(current.sys_id);
var url = '<a href="' + link + '">' + 'Click Here to take your survey' + '</a>';
template.print(url);
Regards,
Gayathri

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2022 04:29 AM
By working you mean it is non-clickable or it is clickable but takes you to incorrect page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2022 04:19 AM
you cannot dotwalk on document id fields. you need to get the GlideRecord of the referenced record yourself, then you can do all the 'normal' things you can do with a GlideRecord.
to do this you can first need to get the table field linked to the document id field (can be an hidden field but must be there).
Then you can use the generic script below to always get the related record.
var grDocumentID = new GlideRecord(current.<table field>);
grDocumentID.get(current.<document ID field>);