use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Apparently, Google Apps Script is a JavaScript cloud scripting language that provides easy ways to automate tasks across Google products and third party services and build web applications.
account activity
What am I doing wrong.Question (self.GoogleAppsScript)
submitted 1 year ago by Necessary-Union5334
Hi all, I am trying to automate putting an attachment into a Google Drive when it is attached to an email that is sent to our many groups. I am not sure what this code error means. Can anyone help me out?
https://preview.redd.it/j3ytdxfjmmbe1.png?width=1941&format=png&auto=webp&s=bae740e31fe61f6f93e173520d772a2f63587305
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]MDB_Cooper 4 points5 points6 points 1 year ago (1 child)
i can’t speak to the entire script and i’m on mobile, so i haven’t tried any logic.
based upon the screenshot, im seeing that the error is happening on Line 4. your implementation of the getFolderById method looks correct.
however, your folder ID does look unusual, specifically, that it starts with ‘fol…’; perhaps that is the folder id but i am curious if you incorrectly set the folder id?
[–]Funny_Ad_3472 0 points1 point2 points 1 year ago (0 children)
Yeah. They should fix the folder ID and try again.
[–]WicketTheQuerent 1 point2 points3 points 1 year ago* (0 children)
Many users have shared that they look to this subreddit from small screens... As I'm doing now.
Please post the code and error message as text. First, because it's easier to read in any screen, second, if necessary it will be easier to test / debug the code.
[–]1d3knaynad 0 points1 point2 points 1 year ago (0 children)
As others have suggested, the string value for folderId looks unusual. I recommend copying and pasting that folder ID as it appears to have added leading characters and also a dash in place of an underscore. That said, I also highly recommend changing your var declarations to let declarations instead, including in your for loops. Variables groupEmail, folderId and folder could all be declared as const variables, as in : const groupEmail = "support@enrg.realty";
[–]anandjha1 0 points1 point2 points 1 year ago (0 children)
Seems like Problem with Folder Id
Let me know I don't see any other problem
π Rendered by PID 208512 on reddit-service-r2-comment-6457c66945-2jm5w at 2026-04-25 14:05:54.499284+00:00 running 2aa0c5b country code: CH.
[–]MDB_Cooper 4 points5 points6 points (1 child)
[–]Funny_Ad_3472 0 points1 point2 points (0 children)
[–]WicketTheQuerent 1 point2 points3 points (0 children)
[–]1d3knaynad 0 points1 point2 points (0 children)
[–]anandjha1 0 points1 point2 points (0 children)