Hello, is there a more efficient alternative for r...
# suitescript
p
Hello, is there a more efficient alternative for record.submitFields? I am running into a SSS_USAGE_LIMIT_EXCEEDED error with my aftersubmit script and I am looking for a way to fix it. Thank you.
s
usually this means either inefficient governance usage due to script design or you're doing something that probably should be a backend script rather than a user event.
if you are calling submitFields() several places on the same record, you'd save units be loading the record, setting anything you like on it, then saving once.
m
You could also. kick off a scheduled script or map reduce script depending on how much volume you're running
p
how do I call a map/reduce or scheduled script from the aftersubmit?
d
use the n/task module to kick off the m/r