Skip to content

Help Move Files #1

@dycross

Description

@dycross

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions