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.

Reference qualifier for company is not working

Julia Baus
Kilo Guru

I have created the reference qualifier visible in the screenshot to only display users where the company is the same as for the logged in user. Unfortunately it does not work, it still displays all users from sys_user:

Full javascript: javascript:gs.getUser().getCompanyID()

 

Any ideas what could be the issue?

Any ideas how to best debug this?

 

1 ACCEPTED SOLUTION

Julia Baus
Kilo Guru

Thanks all for the extensive information. I made it work now with a dynamic filter option calling an Ajax Script include which has a function retrieving the Company ID. Marked the option as solution which was closest to mine

View solution in original post

17 REPLIES 17

Julia Baus
Kilo Guru

Thanks all for the extensive information. I made it work now with a dynamic filter option calling an Ajax Script include which has a function retrieving the Company ID. Marked the option as solution which was closest to mine

HI @Julia Baus,

 

please consider revoking their answer as @MaxMixali is posting tens of messages with the same structure and they just copy paste if from some gen AI tool, look at their replies - they psot 40 replies in an hour. It's clear that it's cheating and in collision with ServiceNow Community Code of Conduct for all members

 

You said they were closest, but in fact they couldn't be more far... that's just FYI. Use this piece of information as you think it's fair :)))

 

Have a wonderful day

_____
This reply is 100 % GlideFather and 0 % AI

Thanks, I have now marked my own solution as it is more or less the summary of the analysis in case someone is checking.