Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Way to update scripts without access to sheet?

74 views
Skip to first unread message

Mateusz Kawka

unread,
Jul 17, 2024, 7:17:02 AM7/17/24
to Google Apps Script Community
Hi all,

I have scripts project and i want to update it remote with clasp into different sheets (dev and prod - i cant have access to prod data), is there a way to achieve this? I tried to create standalone scripts but cannot find information how to bind standalone script with sheet.

olivercre...@gmail.com

unread,
Jul 17, 2024, 10:31:32 AM7/17/24
to Google Apps Script Community
Hi Mateusz,

I'm not aware of a way to convert a standalone script to a bound script.

To edit a script that is bound to a sheet, you'll need edit access to the sheet. That's because container bound scripts have the same editor access permissions as their container file (reference: Collaborate with other developers | Apps Script)

If you cannot have access to the prod sheet, perhaps you can try this: Make updates and test your script using dev. Then share your script with someone who has edit access to prod and have them push changes for you.

Best,
Oliver

Mateusz Kawka

unread,
Jul 24, 2024, 6:48:37 AM7/24/24
to Google Apps Script Community
thanks for answer,

for someone with a similar case, I solved this by adding a function to the production sheet that pulls in json files from the google scripts api
Reply all
Reply to author
Forward
0 new messages