Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

List colletor variable attributes

mounika7675
Tera Contributor

Hi,

 

I created a List Collector variable referencing the cmdb_ci_computer table.

I configured variable attributes to allow searching by three fields:

Name

Serial Number

Asset

Expected behavior:

When I type a value from any of these fields, the corresponding records should appear.

Actual issue:

Only the first two attributes work correctly and return results.

The third attribute never returns any results, regardless of which field is placed in that position.

I also tested by changing the order of attributes, but the behavior remains the same —

only the first two attributes work, and whichever field is placed third does not work.

 

17768786045965057231446337828694.jpg

1 ACCEPTED SOLUTION

Brad Bowman
Mega Patron

The column names must be separated with a semicolon (;) in order to make the attribute valid, but ref_ac_columns is also meant to be used only with reference variables, so I wouldn't be too surprised if it still didn't work.

https://www.servicenow.com/docs/r/platform-administration/c_AutoCompleteForReferenceFields.html 

View solution in original post

3 REPLIES 3

Brad Bowman
Mega Patron

The column names must be separated with a semicolon (;) in order to make the attribute valid, but ref_ac_columns is also meant to be used only with reference variables, so I wouldn't be too surprised if it still didn't work.

https://www.servicenow.com/docs/r/platform-administration/c_AutoCompleteForReferenceFields.html 

I have added (;) for all the variables and now it's working as expected 

 

Thanks 👍 

Tanushree Maiti
Kilo Patron

Hi @mounika7675 

 

Update your variable attribute with following value , save it and recheck --

from:

ref_auto_completer=AJAXTableCompleter,ref_ac_columns=asset,name,serial_number.ref_ac_columns_search=true

 

To:

ref_auto_completer=AJAXTableCompleter,ref_ac_columns=asset;name;serial_number,ref_ac_columns_search=true

 

 

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: