基于电子邮件发送成功,我试图更新“成功”字段。如何更新呢?
N.B-数据源处于手动保存模式和关系数据库。 到目前为止,我有这个
var success = app.datasources.ChangeSystem.item;
google.script.run
.withFailureHandler(function(error) {
status.text = error.message;
success.Success = "Incomplete";
})
.withSuccessHandler(function(result) {
status.text = 'Email sent';
success.Success = "Active";
clearEmailForm();
})
.sendEmailMessage(To, subject, msg);
app.datasources.ChangeSystem.saveChanges();