Is it possible to deploy a user event script to th...
# suitescript
p
Is it possible to deploy a user event script to the message record?
p
yes
p
i am looking for it in the deployment dropdown but it is not there (I am in sandbox)
message has been deleted
p
Weird. I know the option is there for me, as I tested it before saying Yes
p
i see it in a user event script (2.0) but not in a client script.
p
You specifically asked if you could deploy a user event script, and I said yes. Did you mean client script?
p
ooops. my bad. Yes, mean client script.
s
maybe you can give us a usecase and we can see if we can plan some workaround?
p
I am trying to use other entities in the message recipient dropdown in addition to the customer entity. My hope was to use the url params to do a search on the transaction and build from there.
s
i might be going to the wrong rabbit hole rn, but i think if it's possible to use the support case feature, it'll add to this a lot.
and if what you're thnking isn't possible, i'd think checking workflow action scripts
p
thanks!
d
Client script isn't supported for the Message record type: https://netsuite.custhelp.com/app/answers/detail/a_id/10449 However I have a vague memory that I may have been able to get around the restriction in the past, by attaching a client script file in the beforeLoad event using the N/ui/serverWidget module. I don't know if standard client events are fired (I suspect not), however you should be able to query the URL parameters and use the N/currentRecord module to manipulate the field values on the form.