Hello,
When I run the script below as an automation, I get an error:
Script exceeded execution time limit of 30 seconds
Here is the code:
Is there a way to edit this script so it shortens the timeframe of running?
Any help is greatly appreciated! 🙂
Hello,
When I run the script below as an automation, I get an error:
Script exceeded execution time limit of 30 seconds
Here is the code:
Is there a way to edit this script so it shortens the timeframe of running?
Any help is greatly appreciated! 🙂
The most obvious optimization is to change the table.updateRecordAsync() to table.updateRecordsAsync() (note that it can only process 50 records at a time). Where you currently update the record, instead push the update to an array, and then update the records in a batch outside of the loop. Even though the operations are supposed to be asynchronous and can run concurrently, if you're updating a large number of records, the run time can add up.
You can additionally optimize the code by:
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.