Reputation: 487
I'm able to import code into a standalone google apps script by following the instruction here, but I got a problem when tried to import code into a script embedded in a spreadsheet for the script didn't have a file id but only a project id.
So how can we know the file id of a script that embedded in a google apps script, so that we can import code into it with its file id?
Upvotes: 1
Views: 3589
Reputation: 17651
Reading through the same link you provided, it appears that Container-bound scripts (script embedded in a spreadsheet) cannot be accessed through the Google Drive REST API. It's stated in Features and Limitations, number 6.
An alternative to this would be to use Appscript Add-ons.
Upvotes: 1