Unable to find custom table in choice table under dictionary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2023 04:04 AM
Hi Team,
I want choice field and want to use reference table as custom table in Choice list specification tab on dictionary
But required custom table is not visible on Choice table field so please advice
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2023 04:16 AM
Hi @Ramu8
Make sure you are accessing in the right scope and with right name. Also check the table accessibility as well
Please share more details to helpyou.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2023 04:17 AM - edited 12-21-2023 04:18 AM
Hi @Ramu8,
does the reference table's choice field have choices? If the choice field has no choices it won't be shown in the list.
Best regards,
Rene
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2023 04:36 AM
Thanks for response
It has choices it is mainly due to attributes which is in default value and it is OOB configurations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2023 05:19 AM
Could you clarify this please?
The available tables in the choice table field are coming from this script include DictionaryChoiceTables.
Check if your choices are active and try to run this in a background script to see if your table name shows up in the list.
process: function(tableName) {
var glideAggregate = new GlideAggregate('sys_choice');
glideAggregate.addQuery('inactive', false).addOrCondition('inactive', '');
glideAggregate.addAggregate('MIN', 'name');
glideAggregate.query();
answer = new Array();
answer.push("");
while (glideAggregate.next())
answer.push(glideAggregate.name + "");
return answer;
},