Using Document ID field

abhijeet_mody
Kilo Explorer

Hi folks -

 

I've a use case where I want to be able to relate a particular "Any" Service Now record (i.e a specific sys_id on any table) I discovered that this can be acheived by adding a field of type DocumentID on the table. Wiki provides information about how to configure it on a form .

 

However, I do not see more information about how to use that field within scripts to get to that particular related record.

 

Can someone help me with links to documentation if available .. or provide an example of how I can use the document ID field.

 

Regards,

Abhijeet

8 REPLIES 8

Just came across the answer in Create a document ID field



10. (Optional) In Attributes, add the show_all_tables dictionary attribute to display system tables.


Is it possible to limit the number of tables shown? when we give show_all_tables, the user needs to scroll down a huge list of table to select the particular one...



My requirement is, i would like to display only "User" table and "one of my custom table".. is it possible to do it?


Do you have  any solution for this ?.... I too have similar requirement

VishalV02239290
Tera Contributor

you can edit the code to show specific tables

  <option value="incident" selected="selected">Incident</option>
                            <option value="custom_table">Custom table</option>