"Simple triggers are subject to Apps Script trigger quota limits."
https://developers.google.com/apps-script/guides/triggers?hl=en#restrictions
https://developers.google.com/apps-script/guides/services/quotas
There is a need to reduce the workload of the onEdit() function, as it is a simple trigger and is therefore subject to daily quota limits, as per the Google Apps Script documentation. Most of this code should be able to be delegated to separate functions and called from the onEdit() function as needed.
There is a need to reduce the workload of the onEdit() function, as it is a simple trigger and is therefore subject to daily quota limits, as per the Google Apps Script documentation. Most of this code should be able to be delegated to separate functions and called from the onEdit() function as needed.