HRSD - generic lookup table

Colleen
Tera Expert

I have a requirement for a custom multi-select field to be added to a table that extends HR case (sn_hr_core_case).  I can use the List data type but would need a table to store the choices.  I took a look at the tables that came with HRSD application and found Generic Lookup (sn_hr_core_generic_look_up) which appears to be suitable but I cannot find any information on how to use it.  The Generic Lookup table contains no data and has no fields except for sys id, created on etc.

Is there any guidance on how to use the Generic Lookup table in HRSD?  For clarity, sn_hr_core_generic_look_up DOES NOT extend dl_matcher.

1 ACCEPTED SOLUTION

Hi @Colleen ,

What you described here is what we've used the Generic Look Up table for. I was fortunate to be on a project led by ServiceNow and what you described about using something for choice labels and values is exactly how it was used.

You probably noticed that the table doesn't come with any fields at all aside from the system fields. Thus when setting it up be sure to include a "Type" field so that in case the table needs to support multiple scenarios it can be filtered for the appropriate choices/values.

View solution in original post

6 REPLIES 6

Colleen Lowe
Tera Contributor
Display ValueValueActiveHR ServiceDepends OnOrderIntegration ValueUpdatedElementDomain
BenefitsBenefitsTRUEGeneral Inquiry 100????
VisionVisionTRUEGeneral InquiryBenefits100????


Does this look correct?

Category: u_category is Benefits
Subcategory: u_subcategory is Vision

ChrisBurks
Mega Sage

Hi @Colleen Lowe ,

Let me see if I understand correctly what the ask is.

You have structured the generic look up table already with the columns shown in your last post. In your prior post you're asking how to get the required information into the generic look up table, such as populate the cells that contain the question marks displayed in your post. Is that correct?

 

If my assumption is correct a data source flat file (CSV, Excel, JSON, XML etc.) can be used to import and populate the table. It can also do a direct database connection to a third party database to grab the data needed. 

Here's the ServiceNow documentation on setting up a Data Source:

https://www.servicenow.com/docs/bundle/yokohama-integrate-applications/page/administer/import-sets/c...

 

There is also a feature known as Easy Import:

https://www.servicenow.com/docs/bundle/yokohama-integrate-applications/page/administer/import-sets/c...

 

As well as the "Load data" module that guides you on loading a flat file similar to the Easy Import feature:

ChrisBurks_0-1752207593536.png

 

Hopefully, I understood the question and this helps you.