Document ID Field - Reference qualifer

mangesh9
Mega Contributor

Hello,

Can we have reference qualifier for Document ID field so that only specific tables should be populated in 'Table Name' field in Select Document Window.

Thanks in Advance.

1 ACCEPTED SOLUTION

Hi Mangesh,



I understand. to filter that table you need to go to the dependent table name's dictionary entry and add the attribute tableChoicesScript that calls a script include function. See the dictionary entry for sys_dictionary.choice_table as an example.



It points to a script called DictionaryChoiceTables


find_real_file.png


find_real_file.png


View solution in original post

15 REPLIES 15

You are very welcome. Don't forget to mark some of these responses helpful (it was a bit of a journey) and ultimately, one of them correct, so others can find the solution quickly if they want to use document IDs in the future.


satya6
ServiceNow Employee
ServiceNow Employee

Hi Chuck

 

I have added tableChoiceScript attribute to my dependent tableName field. My script include returns table names based on a condition. When form loads my dependent tableName field shows correct data. But my document Id field shows only one table from my dependent tableName field.

 

 

Thanks

Satya

mangesh9
Mega Contributor

Yeah I have same finding as of now, not sure if there could be any way to have only specific tables in Table name.


Deepa Srivastav
Kilo Sage

Search by tableChoicesScript in below link..



Dictionary Attributes - ServiceNow Wiki




Mark Correct if it solved your issue or hit Like and Helpful if you find my response worthy.


Thanks,
Deepa


That's awesome. I knew there had to be a way!