I have the following function (btw I am new to Google Apps Scripts).
function testing(){
let thisSpreadsheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName(thirtyMinuteWorksheet).getDataRange().getValues()
let filterData = thisSpreadsheet.filter(function (row,index) {
return row[11] >= 30
});
if(filterData.length > 0){
MailApp.sendEmail({
to: '[email protected]',
subject: 'test',
body: filterData,
noReply: true
});
}
the filter data filters the sheet and returns all the rows that match the logic. Id like to be able to email those rows. if I run this, i get and email with this. (plus more, shorten it for simplicity).
{10=[Ljava.lang.Object;@7f7f43f6, 179=[Ljava.lang.Object;@d387470,
83=[Ljava.lang.Object;@5daa185f, 54=[Ljava.lang.Object;@39ca2a17, }
i can see this is an object but I couldnt find anything on their API that pointed me in the right direction as to how to covert this results into the actual values
ps
Yes, if i console.log filterData i do get the correct objects. any ideas?


