Pre-filtering of services for customers

AndreasRitter
Mega 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