Hi everyone, is there a limit of how many User Eve...
# suitescript
h
Hi everyone, is there a limit of how many User Event scripts that can be executed on a particular record-type? I've heard that is 10 but could not find a documentation to back it up. TIA
n
Theres not technically a limit. 10 is just the NetSuite recommended max amount.
The more you have, the more performance is impacted on record actions though. That being said, the last company i worked for had like 30 deployed on the case record.
a
its just NS lies, I've been in account where their installed bundles had more than 30 UEs on a given record, before they even started with custom ones. from a performance perspective it isn't great, but if they're written well enough, and exit early if w/e criteria aren't met, then you can have WAY more than 10
h
Appreciate your inputs @Nathan L @Anthony OConnor. Been thinking about consolidating the UE scripts into one
a
understandable, that can be a good exercise, I think if you're having performance issues though, you need to find the poorly performing code and improve it, that's going to be way more impactful than just merging the code into the same script file.
1
👍 1
b
Not only that, but you should also take the governance into consideration. You could run into the API limits when you consolidate everything into one UE script.
h
@BS Good point, i’ll keep that in mind
👍 1
b
best use of combining are for after submits that save the record again, it allows you to minimize the amount of times the record is resaved
🙏 1
n
If you head to the scripted records page for any given record and put that page in edit mode there is a note about what the limit or suggested limit is. For Client Scripts it's a hard 10, go beyond that and those scripts after the 10th in the list will not run. Not one to defend NetSuite but they do not "lie" about User Events they "advise" not more than 10. @Helena I have worked on an account with 52 user events on a Sales Order. they all worked but the user experience was horrifying. (See the attached images)
🙏 1
a
"lies" was definitely hyperbole 🙂