How to move a file from MyDrive to Team Drive?
问题 I would like to use Google Apps Script to transfer a file from MyDrive to Team Drive. I can do this manually (so I know I have permission) and I enabled the Drive API (so was able to save to MyDrive). However, when I do this (which I got from another post): function moveFileToFolder(fileId, newFolderId) { var file = Drive.Files.get(fileId, {supportsTeamDrives: true}); Drive.Files.patch(file, fileId, { supportsTeamDrives: true, corpora: 'teamDrive', removeParents: file.parents.map(function(f)