Trying to use options from a table choice for a select box variable

Brian Sorensen
Giga Guru

Trying to not reinvent the wheel, I'm sure this can be done, but I'm just getting stuck

 

I have the following in a table

Project Type - its a choice field

Asset Refresh
Asset Lifecycle
Value Enhancement

 

On the Catalog form we want to use to populate the table I want to have the same options

I tried to create a record producer with the following

Question Type - Choice
Question Subtype - Reference

Pointed to the table and the field I want

no results

 

Then tried to use

Choice

Dropdown (Values from Table)
Pointed to the table and column

No results

 

Not sure what I am doing wrong, but is there a way to not have to recreate the same options?

3 REPLIES 3

Brad Bowman
Kilo Patron
Kilo Patron

You can do this with a Lookup Select Box type of variable.  I have configured this example to emulate Category as seen on the Incident form / table

BradBowman_0-1726065043317.png

 

BradBowman_1-1726065043316.png

 

In the Reference qualifier, use the name and element from your desired choice list.

Mayur2109
Kilo Sage
Kilo Sage

Hi @Brian Sorensen ,

 

Yes you can use choices which are created for Project type fields in sys_choice table. You need to check map to field in catalog variable the select type as lookup select box, then you need to Lookup from table as sys_choice. Important point here is you need to add reference qualifier for which you can get query from sys_choice table to get all choices related to Project type field.

 

For your reference I've created same for incident table & field category.

Screenshot 2024-09-11 at 7.37.35 PM.pngScreenshot 2024-09-11 at 8.02.07 PM.pngScreenshot 2024-09-11 at 8.02.41 PM.pngScreenshot 2024-09-11 at 8.03.14 PM.png

 

Please check and Mark Helpful and Correct if it really helps you.

Regards,
Mayur Shardul

ServiceNow Rising Star 2024

Brian Sorensen
Giga Guru

Found an easier way
just went into the advanced view, which is just the older Maintain items view

left them as a select box and pointed to the table and column I wanted displayed

BrianSorensen_0-1726142617788.png