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.

If default value gets the current logged in user it returns error when submit in service catalog

k_explorer
Tera Contributor

I create a Record Producer and has a field question Reported by and it is mapped to caller_id field. I tried adding a script that will get the current user id

javascript:gs.getUserID();

to the default value. When I try to submit in portal and doesn't change the Reported by question value it returns "Sorry, either the data doesn't exist or you don't have access". But when I try to change the value it saves successfully. I also tried to remove the default value and then add my account in the reported by again and it saves successfully too.

I think this is not ACL issue. May I know what approach should I do to solve this? I need the Reported by to have a default value of the current user logged in.

Thank you for the help!

0 REPLIES 0