How to restrict the Record Producers in the Portal Search option

jaisankar
Mega Contributor

Hello All,

How to restrict the Record Producers to search in the Portal Page.

These Records producers are from Order Guide- the users are searching with the specific Record Producer names in the Portal Search option and submitting the form. Since it is an order guide and the request is not redirecting to queue as per the script.

So, please let me know how to restrict the list of Record Producers(Order Guide) in the Portal Search Option.

Thanks,

Premfind_real_file.png

1 ACCEPTED SOLUTION

vidisha4
Giga Expert

Hello Jaisankar,

Yes, Modification of the Data Fetch Script in Search Source "Service Catalog will hide the record producer from search option.

Just include one encoded query in data fetch script:

sc.addEncodedQuery('sys_id!=3f1dd0320a0a0b99000a53f7604a2ef9'); // Sys_id of the record producer that you want to hide from search option.

 

Thanks,

Vidisha Srivastava

 

 

View solution in original post

8 REPLIES 8

Vishal Khandve
Kilo Sage

Hi,

 go the record producer that you want to no search on portal.

 

add no search on the record producer form if not already.

and check the checkbox as true as below.

 

find_real_file.png

 

Thanks,

Vishal

vidisha4
Giga Expert

Hello Jaisankar,

 

You can modify the Data Fetch Script in Search Source "Service Catalog".

 

Thanks,

Vidisha Srivastava

 

 

Hi Vidisha,

 

Will it hide the Record Producers even from the Search List? Because, as Vinoth updated if i select the Hide on Portal as True. It is not hiding from the Search Option. But if user redirects to the Record Producers it says The Item is not found. 

But, still we need to hide even from the search option. If it is possible via hiding through the Search_source -> Data Fetch Script?

can you help me with the entire script if so, it will be helpful?

 

Thanks,

Prem

vidisha4
Giga Expert

Hello Jaisankar,

Yes, Modification of the Data Fetch Script in Search Source "Service Catalog will hide the record producer from search option.

Just include one encoded query in data fetch script:

sc.addEncodedQuery('sys_id!=3f1dd0320a0a0b99000a53f7604a2ef9'); // Sys_id of the record producer that you want to hide from search option.

 

Thanks,

Vidisha Srivastava