0
我一直在通過打開ID綁定訪問Google演示文稿的內容,但我沒有成功,所以我想知道是否有人知道如何做,請我將是非常gratefull,這是我的例子。如何編輯Google演示文稿
var NombreDeUsuario = "MY_NAME";
//This ID is from a google presentation.
var docid = DocsList.getFileById("1uF7xY9_QjSqFsILcq5IxGaJuzK6GlPLO-O4dWVG80cI").makeCopy().getId();
//here is where it says that it doesn´t found it
var doc = DocumentApp.openById(docid).setName(NombreDeUsuario);
var date = Utilities.formatDate(new Date(), "GMT", "yyyy-MM-dd");
var rate = "Excelent";
var body = doc.getActiveSection();
body.replaceText("%DATE%", date);
body.replaceText("%RATE%", rate);
doc.saveAndClose();