I need to input an array that is nested within an object into a cell in a spreadsheet
Here is my Google Apps Script code:
function sendText(data){
var sheet = SpreadsheetApp.openById("1isl9CFp4lllCoKNzbYWIE3QHPkj6NekY3l_nm20MVF8").getActiveSheet();
sheet.appendRow([null ,null ,null ,data.budgetName ,data.budgetDeadline ,data.budgetPayment ,data.budgetUrgency ,data.budgetArea ,data.budgetCurrency ,data.budgetTime ,data.budgetEmail ]);
return "success!";
}
For instance, I don't encounter any issues with this variable inside the object because it's not an array
budgetName: e.target["name-budget"].value,
However, if I pass an array inside the object, when it writes to the cell it displays something like this
How can I ensure that the array I send within the object shows up correctly in the cell?
Apologies for any language errors