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.

Pre-filtering of services for customers

AndreasRitter
Giga Guru

We would like to pre-filter the services in the customer portal to the customer so that only the customer's services appear in the selection. The script worked once, but we can't find the reason why it no longer works.
Script:
function getRefQual(){return gs.getUser().hasRole("itil")?"":(new global.FilterForCaseFields).aplicationService(null,gs.getUser().getCompanyID(),null)}

Currently, the pre-filtering is to be integrated globally so that only the services of the customer to which the registered contact belongs are displayed.
Can someone please check the script for me?

Translated with www.DeepL.com/Translator (free version)

0 REPLIES 0