I'm curious what the best way to handle this scena...
# suitescript
a
I'm curious what the best way to handle this scenario is...I have multiple CS scripts deployed on the sales order record, each one performs a different kind of validation before the record is saved. I believe I've reached the max of how many CS scripts can be deployed on a record (10) but I need to add a new script! Do I need to consolidate them into few scripts? If I do, how concerned do I need to be of running into governance issues. Thank you!
s
You have no other option but to consolidate them. If you are concerned about governance, then you are prob doing something wrong. Client scripts should be as thin as possible to keep user experience high.
a
Alright, consolidate it is then. Good point, I'll investigate that farther.
s
In general, if you are doing something liek looping lines and doing validation (this is the only way you should be driving up governance), then make it smarter by building an object/array and search for all the information you need at once rather than doing multiples loads/searches per line.
a
Got it, will do. Thank you!