can we send data from clientscript to a userevent(...
# suitescript
a
can we send data from clientscript to a userevent(after-submit) script without holding data in a field?
m
I have usually implemented this by saving any “persistent” data to a JSON file that I save to the File Cabinet using the Record ID as a filename (I sometimes use other variables like a timestamp for data that could change frequently). I then “reload” this JSON file in the After Save event script by referencing the most recent JSON file with the Record ID as the file name.
e
N/runtime.Session
and
N/cache
are also options
Depending on how much data you're passing and how long you need it to stick around
a
it's small data
and fo short time
@erictgrubaugh session and cache works on serverside script and can't help
I want to transfer data from client side to server side