【发布时间】:2019-05-05 05:28:33
【问题描述】:
我有一个正在填充 Google 表格的 Google 表单。由于工作表中有自定义公式来操作从表单填充的数据,因此我使用 ARRAYFORMULA 应用于列中的所有行。
我有一个自定义函数来编码包含 html 的行
function base64EncodeWebSafe(input) {
try {
// Try and fetch the specified url.
return Utilities.base64EncodeWebSafe(input);
} catch (e) {
Utilities.sleep(1000);
return Utilities.base64EncodeWebSafe(input);
}
}
当我在 ARRAYFORMULA(base64EncodeWebSafe(T2:T)) 中调用此函数时
我收到一个错误“无法将数组转换为(类)[]。”
我期望发生的是将编码函数应用于范围 T2:T
【问题讨论】:
标签: google-apps-script google-sheets array-formulas custom-function