This code updates only the Last edit of the cell (User, Date & Time) and inserts as Note OnEdit
function onEdit(e) {
var email = Session.getActiveUser().getEmail();
var curDate = Utilities.formatDate(new Date(), "GMT+05:30", "EEEE dd-MMM-yyyy ● hh:mm a")
if (e.range.columnStart === 5 && e.source.getActiveSheet().getName() == 'ARTWORK') {// Column 12 is Column L
//Set a comment on the edited cell to indicate when it was changed.
e.range.setNote('Updated by - ' +email+ '\n\nDate & Time\n' + curDate);
};
}
But my requirement is, can we add a history of edit in the cell as a Note?
e.g.
EDITED by NYK at 11-Sep-2020 - 11:20 am
EDITED by XYZ at 12-Sep-2020 - 12:20 pm
EDITED by ABC at 15-Sep-2020 - 15:01 pm
Is this possible?
