不能够将Excel文件转换为GoogleSheep

问题描述 投票:0回答:1
有人可以帮助找到错误。

使用
Drive.Files.copy

修改脚本
google-sheets google-apps-script google-drive-api google-sheets-api
1个回答
0
投票

将文件转换为Google表格式的格式
var resource = { title: file.getName().replace(/\.xlsx?$/, ''), parents: [{ id: folder.getId() }], mimeType: MimeType.GOOGLE_SHEETS };

转换并保存一步

var convertedFile = Drive.Files.copy(resource, file.getId()); 样本输出

驱动文件


Reference

files.copy

image

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.