How to decrease the limit of records of a Lookup Selectbox variable?

Rufino
Giga Guru

I know that the maximum limit of records that a Lookup Selectbox variable can show is 10000. I wanna to decrease this value to have a better performance on my catalog item.

 

Is this possible? If yes, how can I do that?

1 ACCEPTED SOLUTION

Rahul Kumar17
Tera Guru

Hi,

Yes, it is possible to decrease the maximum limit of records that a Lookup Selectbox variable can show in ServiceNow. You can achieve this by modifying the glide.ui.lookup.max_rows system property.

To modify this system property, follow these steps:

  1. Log in to ServiceNow as an admin user.
  2. In the navigation menu, go to System Properties > All.
  3. In the search bar, search for "glide.ui.lookup.max_rows".
  4. Click on the "glide.ui.lookup.max_rows" property to open it.
  5. Change the value of this property to the desired maximum number of rows that should be displayed in the Lookup Selectbox variable.
  6. Click the Save button.

By default, this system property is set to 10000. By decreasing this value, you can improve the performance of your catalog item by reducing the number of records that are loaded into the Lookup Selectbox variable. However, be aware that setting this value too low may limit the functionality of the Lookup Selectbox, as it may not show all the necessary records.

 

Thanks,

Rahul Kumar

If my response helped please mark it correct and close the thread.

Thanks,
Rahul Kumar

View solution in original post

6 REPLIES 6

Joe S1
Kilo Sage

Hello Rufino,

 

A Lookup Select Box is just a dropdown view of a table of choices. You can limit the number of values that come back with a Reference Qualifier on the field. I'm curious though, if you have so many choices why not just use a Reference type field instead of a LSB?

I was using a reference field, but my end users doenst know the contains (* before a search) funcionality. They are always complaining that dont find their numeric sequence.

 

I'm trying to give to they a better user experience on a catalog item, because they need to find a numeric sequence, but some records have zeros in front of them (example in prints bellow).

Rufino_1-1682445766604.pngRufino_2-1682445791195.png

 

I don't know why, but when I use a Lookup SelectBox, the contains(*) functionality comes in background. That's why I'm using it.

 

 

Thanks,

 

You can switch the default search context on reference fields to a "contains" search. However this is a system property and thus would be a platform wide change that would affect all reference fields.

 

This is what I'm avoiding. I don't wanna change this property because gonna impact all the plataform. It's just for this specific catalog item that we have this issue.