Any ideas as to why a user event script is only wo...
# suitescript
p
Any ideas as to why a user event script is only working in testing mode? The script loads a saved search and then populates a field with the results.
b
script deployment audience
context filtering
and if you are using logs to tell its running, the log level
p
Hmm...so debug log level may be the culprit?
b
not really, but when the script status is set to released, the log level changes
p
Ok. Thanks.
e
Audience and Permissions would be the two things to check, assuming by "not working" you mean the field is not getting populated correctly
p
Its not even firing. Debug logs shows nothing when released but in testing it works fine.
k
try check all roles and execute as admin
e
very likely audience
p
And this is logged in as admin
e
testing will work for the current logged in user (even if no audience is set), but released will only work for users/groups/etc in the audience
✔️ 1
e
The default Audience is literally no one, so if all you do to release a script is change it from Testing > Released, it will not work
e
^This caught me so many times when I first started writing scripts.
k
It must work as per above scenarios, if not then it's weird
p
audience it was. i could have sworn i selected all roles but i did not. fail on me.
k
Can you post ur script here
screenshot of deployment