Hi Raymond,
File ids do not contain “=” equal signs or “?” question marks. Strip the end of the Id that you have and try again. Everything from the ? to the end you should removed.
From: google-apps-sc...@googlegroups.com <google-apps-sc...@googlegroups.com> On Behalf Of Raymond Wood
Sent: September 18, 2021 8:25 AM
To: Google Apps Script Community <google-apps-sc...@googlegroups.com>
Subject: [Apps-Script] DriveApp.getFolderById Errors
Hello all. I keep seeing the following errors:
Exception: Unexpected error while getting the method or property getFolderById on object DriveApp. at saveImage(saveImage:7:28)
or
Exception: Access denied: DriveApp. at saveImage(saveImage:7:23)
Folder ID is correct.
Code in my deployment
Index.html to get a signature
saveImage() to write the signature to a file. This is where I have the problem. Line 7: getFolderById
--
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/d655b085-2851-40ce-a4a3-b5668b73b8dcn%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/-ipX5zsT3Jw/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/002301d7acb9%243950e8d0%24abf2ba70%24%40gmail.com.
You are welcome.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/CAHPxyi6oJPLZFunbkqBF6-0ADYvwe1RTcpF3Z2Qberk52S2W-g%40mail.gmail.com.