Join Slack
Powered by
Is it possible to trigger a client script when a c...
# suitescript
p
pen one
11/05/2020, 3:21 PM
Is it possible to trigger a client script when a csv is imported into a transaction?
c
creece
11/05/2020, 3:22 PM
You can only trigger server-side logic
e
erictgrubaugh
11/05/2020, 3:24 PM
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
Watz
11/06/2020, 6:12 AM
@erictgrubaugh
would you check for execution type in that module if you need to get the currentRecord or get the newRecord?
n
NickSuite
11/06/2020, 9:48 AM
@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
Watz
11/06/2020, 9:49 AM
Ah, clever!
👍 1
n
NickSuite
11/06/2020, 9:58 AM
Thanks!
53
Views
Open in Slack
Previous
Next