From my testing a user event script doesn't fire i...
# suitescript
r
From my testing a user event script doesn't fire in many context. And I am not sure how to accomplish with a work flow. I need to update a customer record when an email (Message) is sent from Netsuite to that customer. Any tips on approaches?
b
use a map/reduce script to search for messages that have been sent and update the matching customer
r
thx @battk. I was thinking of resorting to a scheduled mass update. High level, is a map reduce better than mass update? I was originally hoping for real time updates.
b
real time updates basically means you limit yourself to what a user event supports
usually you only need to deploy a user event to all records and log when it runs to figure out if a user event is possible
r
i did deploy a user event but it didn't fire when sending email via script. I was thinking maybe workflow on "Message" created would always fire and I could send results to action script, do you think that would work?
b
user events and workflows are the same thing
r
they share the same trigger events and contexts?
b
you get more options with user events, but its mostly the same
r
thnak you
I have small data per hr. and need something to run hourly at max. The only scheduling option I see is Workflow on saved search unless you know of more frequent intervals.
b
you are asking in the suitescript channel, you get the suitescript options here, which are map/reduce or scheduled scripts
r
👍