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
Shawn Talbert
01/05/2022, 4:59 PM
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.
Shawn Talbert
01/05/2022, 4:59 PM
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
Matt Bernstein
01/05/2022, 5:00 PM
You could also. kick off a scheduled script or map reduce script depending on how much volume you're running
p
Phillip
01/05/2022, 5:01 PM
how do I call a map/reduce or scheduled script from the aftersubmit?