Does calling submitFields trigger other user event...
# suitescript
s
Does calling submitFields trigger other user event scripts
b
using the word
other
implies that there is a first user event you are calling the submitField in
in which case the answer is no, user event scripts in general dont trigger other user event scripts
s
so this is happening on a map/reduce script
b
if you mean outside of a user event script, then yes, calling submitFields in a script like a map/reduce will trigger user event scripts
s
Grrrr. They realllllllllly do not want me to speed this up lol
s
You can change the context on the UE if you do not want them to fire when the system is hitting those records instead of a user
s
I wish I could. We need only this script to run for this map/reduce or csv import. For all others, we still need them to run as normal.
I hate they removed disableTriggers as it doesn't seem to be working.
b
what did your attempt to use disableTriggers look like
s
slow still unfortunately. The save takes forever. I hate they don't give sandbox the same processing power as production
No idea if it'll be a true problem in netsuite or not. It took an hour to run. I feel it should of taken 10-30 minutes to run.
b
i meant the code
s
It still ran the other scripts when I had disableTriggers, but this is what I had.
Copy code
newRecord.save({
    ignoreMandatoryFields: true,
    disabletriggers: true,
    enableSourcing: false
});
b
will probably depend on the script, but there are 2 parts to it
the default value for the before load scripts
and what you had for saving the record, though it may be
disableTriggers
instead of
disabletriggers
s
OH! I didn't notice that