- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-27-2018 07:40 AM
I've got a document_id field on my Approval records that I'd like to pull information from for an email notification. Dot walking the normal way doesn't seem to work on the document_id field, the values don't resolve to anything. Is there a correct syntax for referencing other fields through document_id, or is that something that's just not possible?
Thanks!
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-27-2018 08:07 AM
You can dot walk on the document ID field.
I just ran a script on sysapproval_approver table. There is a document_id field on it.
var approval = new GlideRecord('sysapproval_approver');
approval.addQuery('sys_id', '2f5cb8c20f90130067a7cd8ce1050e9a');
approval.query();
if(approval.next()) {
gs.print(approval.document_id.number);
}
Thanks
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-27-2018 08:07 AM
You can dot walk on the document ID field.
I just ran a script on sysapproval_approver table. There is a document_id field on it.
var approval = new GlideRecord('sysapproval_approver');
approval.addQuery('sys_id', '2f5cb8c20f90130067a7cd8ce1050e9a');
approval.query();
if(approval.next()) {
gs.print(approval.document_id.number);
}
Thanks
Anil