Need advice on how to make this work ( adding scrript for other person)

18 views
Skip to first unread message

Tony Tan

unread,
Jun 26, 2022, 9:54:45 AM6/26/22
to Google Apps Script Community
Hi

so im tasked to make a script on a google form that upon submitting it moves all uploaded files to a specific folder.
i was added as a collaborator on the form itself and he also shared the folder of the drive that will have the final destination(this will be the folder my script will move all the files to) of the files being uploaded
when i tested it on a form that i own and drive that i own it works perfectly but when i added my script into their form it doesn't move the file.
i checked the log file and it gives me error below
```Debug
{ [Exception: No item with the given ID could be found. Possibly because you have not edited this item or you do not have permission to access it.] name: 'Exception' }```

what do i need in order for me to move the files of someone else's form and drive?

Thanks

Jonathan Butler

unread,
Jun 26, 2022, 10:06:33 AM6/26/22
to google-apps-sc...@googlegroups.com
Can't you have the person who put you on this project install the onFormSubmit trigger? Then it will run with their permissions and be able to move the files into the folder.

--
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/9ac3cd10-8714-48eb-99e4-02db039fb618n%40googlegroups.com.

Tony Tan

unread,
Jun 26, 2022, 10:22:45 AM6/26/22
to Google Apps Script Community
ill try this

Tony Tan

unread,
Jun 26, 2022, 10:52:58 AM6/26/22
to Google Apps Script Community

just wanna ask if there really is no other way
On Sunday, June 26, 2022 at 10:06:33 PM UTC+8 butlerjon...@gmail.com wrote:
Reply all
Reply to author
Forward
0 new messages