Skip to content

Instantly share code, notes, and snippets.

@dandronic
Created January 21, 2021 18:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dandronic/ed7e8deb9e6e6c7992bf2333c7a366d1 to your computer and use it in GitHub Desktop.
Save dandronic/ed7e8deb9e6e6c7992bf2333c7a366d1 to your computer and use it in GitHub Desktop.
Adding the trigger to Google Spreadsheet
function callFLBflow(name, phoneNumber) {
var url = 'addYourWebhookUrlHere';
var data = {
"name": name,
"phoneNumber": phoneNumber
};
var options = {
'method' : 'post',
'contentType': 'application/json',
// Convert the JavaScript object to a JSON string.
'payload' : JSON.stringify(data)
};
UrlFetchApp.fetch(url, options);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment