I have a question for Google Script on how to split text with a separator at the same time i append a row with data.
Where 'content' has body text with the separator.
Here is my script:
function readMail() {
var thread = GmailApp.getInboxThreads(0, 1)[0];
var messages = thread.getMessages()[0];
var content = messages.getPlainBody();
var spread = SpreadsheetApp.openById('...');
var sheet = spread.getSheetByName('...');
sheet.appendRow([messages.getDate(), messages.getFrom(), content]);
}