Can you dot walk on a document_id field?

bradfournier
Kilo Expert

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!

1 ACCEPTED SOLUTION

VaranAwesomenow
Mega Sage

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);
}

 

find_real_file.png

 

Thanks

Anil

View solution in original post

1 REPLY 1

VaranAwesomenow
Mega Sage

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);
}

 

find_real_file.png

 

Thanks

Anil