Moving File to Specific Folder using Google Apps Script (1)

PHOTO EMBED

Mon Jun 27 2022 16:49:55 GMT+0000 (Coordinated Universal Time)

Saved by @Waydes

var sourceFileId = "###";
var destinationFolderId = "###";

var file = DriveApp.getFileById(sourceFileId);

DriveApp.getFolderById(destinationFolderId).addFile(file);

file
  .getParents()
  .next()
  .removeFile(file);
content_copyCOPY

https://tanaikech.github.io/2019/11/20/moving-file-to-specific-folder-using-google-apps-script/