Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Catalog Item "meta" field

xiaix
Tera Guru

On catalog item A, I put the string value shop into the "meta" field.

I have a List Collector variable on a separate catalog item B, referencing the sc_cat_item table:

find_real_file.png

 

When I go to catalog item B and type "shop", catalog item A does not show up:

find_real_file.png

 

Why?

1 ACCEPTED SOLUTION

xiaix
Tera Guru

Found it.
Needed to put the Variable Attribute to: ref_ac_columns_search=true,ref_ac_columns=meta

find_real_file.png

 

I started digging around in the /scripts/js_includes_sp.jsx file, and found the getReferenceColumnsToSearch() function.

In that function I noticed:

var colNames = ['name'];
if (fieldAttributes['ref_ac_columns_search'] == 'true' && 'ref_ac_columns' in fieldAttributes && fieldAttributes['ref_ac_columns'] != '') {
colNames = fieldAttributes['ref_ac_columns'].split(';');
if (scope.ed.searchField)
colNames.push(scope.ed.searchField);
}

Well, that was all I needed to deduce ref_ac_columns_search=true,ref_ac_columns=meta

View solution in original post

4 REPLIES 4

xiaix
Tera Guru

Found it.
Needed to put the Variable Attribute to: ref_ac_columns_search=true,ref_ac_columns=meta

find_real_file.png

 

I started digging around in the /scripts/js_includes_sp.jsx file, and found the getReferenceColumnsToSearch() function.

In that function I noticed:

var colNames = ['name'];
if (fieldAttributes['ref_ac_columns_search'] == 'true' && 'ref_ac_columns' in fieldAttributes && fieldAttributes['ref_ac_columns'] != '') {
colNames = fieldAttributes['ref_ac_columns'].split(';');
if (scope.ed.searchField)
colNames.push(scope.ed.searchField);
}

Well, that was all I needed to deduce ref_ac_columns_search=true,ref_ac_columns=meta

vijay s4
Tera Contributor

On catalog item A, I put the string value Office into the "meta" field.

I have a List Collector variable on a separate catalog item B, referencing the sc_cat_item table:

When I go to catalog item B and type "office", catalog item does not show up:
 
I also added Variable Attribute to: ref_ac_columns_search=true,ref_ac_columns=meta
even then it not shown up....where as in Reference variable it was working...
 
find_real_file.png

vijay s4
Tera Contributor

On catalog item A, I put the string value Office into the "meta" field.

I have a List Collector variable on a separate catalog item B, referencing the sc_cat_item table:

When I go to catalog item B and type "office", catalog item does not show up:
 
I also added Variable Attribute to: ref_ac_columns_search=true,ref_ac_columns=meta
even then it not shown up....where as in Reference variable it was working...
 
find_real_file.png

vijay s4
Tera Contributor

On catalog item A, I put the string value Office into the "meta" field.

I have a List Collector variable on a separate catalog item B, referencing the sc_cat_item table:

When I go to catalog item B and type "office", catalog item does not show up:
 
I also added Variable Attribute to: ref_ac_columns_search=true,ref_ac_columns=meta
even then it not shown up....where as in Reference variable it was working...