【发布时间】:2020-04-05 20:28:40
【问题描述】:
此脚本将 html 表格的数据内容发送到 Google 表格。
但我现在需要将数据附加到下一个可用行。
我在很多情况下都使用过appendRow(),但我不确定这种特殊情况下的语法。
function pasteRequisicaoHtml(table) {
var ss = SpreadsheetApp.openById("1J_7GZ1C7pgHuRsdfsdfsdfsdf");
var sheet = ss.getSheetByName('Sheet5').getSheetId();
var req = {
requests: [
{
pasteData: {
html: true,
data: table,
coordinate: {
sheetId: sheet,
rowIndex: 2,
columnIndex: 0,
},
},
},
],
};
Sheets.Spreadsheets.batchUpdate(req, ss.getId());
}
【问题讨论】:
标签: google-apps-script google-sheets google-sheets-api