Is it possible to create a Spreadsheet in a specified Folder or do I have to use the Drive API to move it afterwards?
相关问题
- How can I force all files in a folder to be owned
- google-drive can't get push notifications
- File upload via REST v3 appears as “Untitled”
- PyDrive Upload and Remove
- Android: Google Drive onActivityResult() getting r
相关文章
- How can my Google Apps Script be run by others the
- Get the list of all spreadsheets associated with G
- Google Drive raw data?
- how to programmatically download a public Google D
- Is it possible to send HTTP request from inside Go
- Google Drive API is not working after Proguard obf
- How to style a Google Doc using Google Drive API?
- Get filtered data from Google Sheets API
Depends on how you want to use and how do you create your Spreadsheet, it is possible to create Spreadsheet like so.
Again with not much info i do not know why would you create Spreadsheets manually when there is programmatic way to do it.
Some helpful links:
https://developers.google.com/apps-script/reference/drive/folder
https://developers.google.com/apps-script/advanced/drive
Update:
Slightly modified version of the method given by @ukaric. This creates a new Form (can be any doc type you need) in the same folder as the current spreadsheet. This can also be used for moving files around, then just replace the creation part with getting a reference to the target file.
Use the drive API to create an empty sheet and open it using the sheets api:
I'm a little late but the way I found doesn't require copying/deleting the file. You simply remove and add parents. My code is in Ruby instead of JS but I'm sure something similar exists.
After a few minutes of searching the drive api docs, I found the code below for Node.JS to move a file into a specific folder. Hope this helps.