我正在使用php将数据写入google sheets。然而,当数据是从php中写入时,google sheets上的触发器onEdit函数不会触发。下面是我用来写下数据的代码:
$body = new Google_Service_Sheets_ValueRange(array('values' => $resultArrayGen));
$params = array('valueInputOption' => $valueInputOption);
$range = 'Main!F2:K';
$result = $service->spreadsheets_values->update($spreadsheetId, $range, $body, $params);有没有办法使用google services sheets来触发谷歌电子表格中的onEdit函数?
谢谢
发布于 2019-05-15 05:38:12
根据谷歌的文档,onEdit触发器不会触发:
脚本执行和API请求不会导致触发器运行。例如,调用Range.setValue()来编辑单元格并不会导致电子表格的onEdit触发器运行。
你可以在here上找到它。
https://stackoverflow.com/questions/45808611
复制相似问题