Let me ask my question in a different way. I creat...
# suitescript
s
Let me ask my question in a different way. I created a field for the invoice. In the field I want to keep the Item Fulfillment ID. I have a Map Reduced ready to go. If I'm not mistaken, I believe that the User Event will fire every time the script update an Invoice. Am I right ?
b
i see you keep on asking around, but map reduce scripts will trigger user event scripts
csv imports with the
Run Server SuiteScript and Trigger Workflows
option disabled is the easiest way to not trigger user events
SuiteTalk with the
runServerSuiteScriptAndWorkflowTriggers
request preference set is by far a harder option
An absurd option is to use your map/reduce to trigger a user event script on a custom record and then have the user event script do your work instead
user event scripts will not trigger other user event scripts
e
User event scripts are just like database triggers. Every time a record is “touched”, UE scripts will fire just like database triggers do when a CRUD operations are performed.
k
I try to always wrap my user event code in if statements checking the context type. If a portion of the code shouldn't be triggered by other scripts, I make sure to exclude
XEDIT
from the context types that execute within my if statement.