Answer the question
In order to leave comments, you need to log in
How to pass data from table to sidebar?
Hello.
There is a table. It has data on it. I receive this data in an array.
Receipt Code
function getTemplateBase(){
const sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("data");
let lRow = sheet.getLastRow();
let range = sheet.getRange(2,1,lRow,4);
let values = range.getValues();
//Logger.log(values);
return values;
};
let data = google.script.run.getTemplateBase();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question