Skip to content

cant seem to get [spreadsheets.sheets.copyTo] to work.. #684

@hirokun2016

Description

@hirokun2016

Hi,
I cant seem to get the spreadsheets.sheets.copyTo to work. I have followed everything in the documentation but it still wont work. I am able to successfully perform other commands such as batchUpdate or Create. Can anybody tell me what is wrong with my code or how to make this work? Here is a snippet of my code:

    function copySheet(auth) {
    var sheets = google.sheets('v4');
    var spreadsheetID_foo = 'some spreadSheet ID';
    var spreadsheetID_test = 'another spreadSheet ID';
    sheets.spreadsheets.sheets.copyTo({
        auth: auth,
        spreadsheetId: spreadsheetID_test,
        sheetId: 0,
        resource: {destinationSpreadsheetId: spreadsheetID_foo}
    }, function(err,response){
        if(err) {
            console.log(err);
        }
        console.log('Data :', response);
    });
}

Metadata

Metadata

Labels

needs more infoThis issue needs more information from the customer to proceed.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions