Is it possible to trigger a client script when a c...
# suitescript
p
Is it possible to trigger a client script when a csv is imported into a transaction?
c
You can only trigger server-side logic
e
Extract the logic from the client script into a common module, then reuse the common module between the Client script and a User Event for the import
👍 1
w
@erictgrubaugh would you check for execution type in that module if you need to get the currentRecord or get the newRecord?
n
@Watz, pass the record object from the user event or client script. That way you will not have to check it in the module.
👍 2
w
Ah, clever!
👍 1
n
Thanks!