On Jul 10, 2023, at 12:10 PM, Kayla Skillin <kayla....@gmail.com> wrote:
Hello,
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/9af0e0e1-8d9c-4192-ada1-a1cd7a8ef83fn%40googlegroups.com.
Hi Kayla,
It is probably failing because it did not read the values from the spreadsheet.
In the GitHub page, there is a list of things to do to prepare this to work for you. One thing mentioned is:
5. In your copy of the spreadsheet, capture the Spreadsheet Key.
This is the part of the URL between the two slashes following the “d,” highlighted here: https://docs.google.com/spreadsheets/d/…./
Did you make that change in your copy of the code?
--
Looking at what is posted in Github, the MailApp.sendEmail that is used is still supported and has not been deprecated and have not heard of any plans to do so. So that is not the problem.
The line of code that is failing is this one (unless you add or removed some lines of code):
manager_email = d[SETTINGS.MANAGERS_EMAIL_COLUMN_NAME].match(EMAIL_REGEX);
So it is trying to grab the manager’s email from the spreadsheet. But for some reason the value is undefined (meaning it was not able to read the data from the spreadsheet.
Was there something submitted for Manager’s email in the form data?
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/052cc4f7-18b1-4e58-ab74-e6e16e52b39dn%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "Google Apps Script Community" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-script-community/MTmhGG9eBtE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/007901d9b36b%24ff268f50%24fd73adf0%24%40gmail.com.
Yes, to do that, just delete the triggers you created, archive the deployment of the webapp.
Then give edit access of spreadsheet to admin account, from admin account, re-create the trigger, and redo the deployment of the webapp. You will have to update the webapp url in the script to the new one.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/CAMrKRDjDgiVru9bzMX83RBeU7Wr38vTgBNgkRn2%2BREZnPmQ%3DBw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/002a01d9b44e%24fb30fa00%24f192ee00%24%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/CAMrKRDiUBj2b%2BiEJu%3Dt3jO7%3Dsj_OF9dSEZrq%3D9ZOu6K3jCsUVw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/CAFX%2Bz3U3sKQvxAOGptRjzd%2BjcUOUfEvyh088aVbQ999gs_YaDA%40mail.gmail.com.