Skip to content

Instantly share code, notes, and snippets.



Last active Nov 7, 2020
What would you like to do?
function doPost(request){
// Open Google Sheet using ID
var sheet = SpreadsheetApp.openById("1OOArrqjOqmD4GiJOWlluZ4woTMH_qaV6RKv4JXnT3Hk");
var result = {"status": "SUCCESS"};
// Get all Parameters
var name =;
var email =;
var mobileNo = request.parameter.mobileNo;
var feedback =;
// Append data on Google Sheet
var rowData = sheet.appendRow([name, email, mobileNo, feedback]);
// If error occurs, throw exception
result = {"status": "FAILED", "message": exc};
// Return result
return ContentService
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment