Hi All, We have the following case: - `SO record...
# suitescript
m
Hi All, We have the following case: -
SO record
has several heavy
UE scripts
- we also have a complex
M/R script
that processes
SO records
- how can we instruct NetSuite to prevent these
UE scripts
from triggering for only this specific
M/R script
? Context filtering will not work, as we want other M/Rs to trigger the UE scripts There is a possible solution with a checkbox on SO record that will be set/unset by the M/R but that means extending the logic in all exiting UE scripts Any suggestions?
n
Add one flag on the record some checkbox for the ignore, once your map reduce run and you want to exclude to run other user events ch ck that checkbox from your map reduce and check the flag is true then exit the UE script.
m
@Nihal Mulani - this means adding some logic to each individual
UE script
, right? I was hoping for some more elegant solution 🙂
n
you can exclude all map reduce script context but for any specific script you have to check with support.
b
the sneaky way is to have the map/reduce create a custom record and have a user event deployed to the custom record do your sales order processing
user event scripts wont trigger other user event scripts
the less supported way is to use the disabletriggers defaultValue to disable beforeLoad entry point, and the undocumented disableTriggers parameter while saving the record to disable the submit related entry points
m
haha, that's a good one... but that means we'll need to re-work the M/R script heavily (this is for the custom record solution you're suggesting)