Skip to content

Instantly share code, notes, and snippets.

@dandronic

dandronic/callFLBflow.js Secret

Created Jan 21, 2021
Embed
What would you like to do?
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