Search Configuration Item Reference Field by IP Address

Cody17
Tera Contributor

I have a requirement to be able search for a CI by not only name, but by IP address as well.  I have added IP address to the ref_ac_columns so far but am unsure how to make it so they can search by the name IP address and return the correct device.  They also want it so if they click into the popup view it does the same.  If this is possible, how can it be accomplished?

1 ACCEPTED SOLUTION

Shivalika
Mega Sage

Hello @Cody17 

 

Add another variable attribute to your reference field "ref_ac_columns_search=true" . 

 

It will then enable the search on reference columns and then only the columns given in ref_ac_columns will actually work. 

 

Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket. 

 

Regards,

 

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY

View solution in original post

4 REPLIES 4

lpruit2
Kilo Sage

Greetings, 

 

It sounds like you want to use "ref_ac_columns_search" in addition to ref_ac_columns. If it helps, I'll include a link to some ServiceNow Product Documentation that explains the information in more detail. I hope this help!

Auto-complete for reference fields

Sample code: ref_auto_completer=AJAXTableCompleter,ref_ac_columns=first_name;last_name,ref_ac_columns_search=true,ref_ac_display_value=false

Shivalika
Mega Sage

Hello @Cody17 

 

Add another variable attribute to your reference field "ref_ac_columns_search=true" . 

 

It will then enable the search on reference columns and then only the columns given in ref_ac_columns will actually work. 

 

Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket. 

 

Regards,

 

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY

Cody17
Tera Contributor

Thank you so much!

@Cody17 I am glad it helped 😄 

 

Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket. 

 

Regards,

 

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY