-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Hello tanaikech!, I love your work. I am trying to use "moveFilesAndChangeFileNames", it asks if you are available from the ID and it is written in cells of the spreadsheet and I want to keep the current name of the file, how could I create the dictionary (fileIds) that I give the script to move the files folder?
I am trying this way but it throws error:
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sx = ss.getSheetByName("Mover_a_historial");
var range = sx.getDataRange();
var values = range.getValues();
for (var i=2; i < values.length ; i++)
{
const id_file = values[i][0].toString();
const name_file = values[i][1].toString();
var fileIds = [];
fileIds.push({
id: id_file,
name: name_file
});
}
Metadata
Metadata
Assignees
Labels
No labels