I am using google app scripts to try and receive a webhook. I would like to pull just the ID number and then trigger an api pull to do other things. However, I cannot get the first part of my script to work and it keeps failing. can someone help me understand what I am missing here? below is the script code from my GAS instance.
function doPost(e) {
var params = JSON.stringify(e.postData.contents);
var data = JSON.parse(params)[“meta”][“id”];
// I think its failing somewhere above this line
var ss = SpreadsheetApp
var getSS = ss.openByUrl(THE URL I USE)
getSS.getSheetByName(“THE SHEETS NAME”).getRange(1,1).activate().setValue(data)
}