I need to write a script to fill in a glide list with 3 values, assigned_to, caller and opened_by. Please see screenshot below.

dinasabry
Kilo Contributor

Hi,

I need to write a script to fill ina glide list with 3 values, assigned_to, caller and opened_by. Please see screenshot below. Should it be a client script, UI policy or what?  How do I access this glide_list (u_users_enabled_to_access_case)

find_real_file.png

1 ACCEPTED SOLUTION

This wouldn't work as a client script, as it is using current, which is in the server-side API. 

 

Can you post a screenshot of your business rule? It should be set to run Before. If you have it running After, it would not work, as there is nothing telling it to write to the database. Before business rules have an inherent "current.update()" after all Before BRs have completed. 

 

Also, make sure the field names are correct in the script. Are any of the values going into the GlideList field?

View solution in original post

12 REPLIES 12

Thank you.That's what I did but still did not work for some reason.

Perhaps some of the fields are not right in the script. Double-check the field names (caller vs. caller_id vs. opened_for, etc.). 

 

Can you post a screenshot of your business rule? 

Nice catch Tim Deniston. I forgot to replace gr with current after my testing. I have updated the script now.