I have this Google Apps Script that I have modified and added and removed things over the months, I am trying to run “sendEmails” automatically but I keep getting this error (shown below, along with entire script) It works fine if I run it manually in the dropdown. This is for our car dealership, this is how we let the service department know a traded in vehicle is ready for them to service, works great but I always have to run it a few times a day.
I would also like to have another “send email” function for a 2nd page that is in the same Google Sheet called “Sold Log” I already have the draft created and the subject line “Sales Tracker – {{Date}}”
Error:
Error: Oops – can’t find Gmail draft
at getGmailTemplateFromDrafts_(Code:163:13)
at sendEmails(Code:47:25)
0