Memory Status
Loading profile...
Generating initial steps...
Smart memory queue & automatic Google Sheets logging
This URL is saved to your cloud profile so it persists automatically.
function doPost(e) {
try {
var data = JSON.parse(e.postData.contents);
var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
sheet.appendRow([
new Date(),
data.combination,
"" // Empty notes placeholder to restrict to exactly 3 columns
]);
return ContentService.createTextOutput(JSON.stringify({status: 'success'}))
.setMimeType(ContentService.MimeType.JSON);
} catch (err) {
return ContentService.createTextOutput(JSON.stringify({status: 'error', message: err.toString()}))
.setMimeType(ContentService.MimeType.JSON);
}
}