We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Modification of Global Search in native view

Sakshi Lambat
Tera Contributor

Hi,

 

I need to modify the "Global Search" logic on backend so that no "sc_cat_item" results are returned by the searches. We also need to ensure that this restriction does not impact the employee center portal search logic.

Please help me.

 

Thanks

9 REPLIES 9

Ankur Bawiskar
Tera Patron

@Sakshi Lambat 

but why would agents working in backend search catalog item in global search?

what's your business requirement?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Hi Ankur,

 

The reason is that some users are currently using such results to raise SRs directly from backend instead of from Employee center. We want to restrict the users to raise it from backend / native view.

 

Thanks,

Sakshi

@Sakshi Lambat 

let them search in native but you can stop them from submitting from native using onSubmit catalog client script

AnkurBawiskar_0-1784011305746.png

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

@Sakshi Lambat 

try this as well

glide.ui.no_text_search -> in this property add sc_cat_item table at the end

AnkurBawiskar_1-1784011471881.png

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader