Hello! I know that you can use buttons, basic text and images as triggers for a zapier action, but as anyone acomplished to do that with the submit form?
I know that you can integrate with G-Sheets but Support from Zapier told me that a new row to trigger takes 3 minutes in order to allow people to input data manually, so I’m looking to use the Glide integration to surpass this 3 minutes delay.
I’m going to ask the develop team, but the action I’m looking is to after someone submit the form it would trigger a zap with several actions like e-mail, sms and mailchimp.
@Robert_Petitto Thanks! But the problem with that is that the trigger for a new row takes something like 3 minutes to actually trigger as I mentioned And I really need to supress this 3 minutes delay.
I have only worked with sending automatic emails based on newly added rows, not sms or mailchimp (but I think SMS will work the same way as long as you have the carrier number’s email format).
What I normally do is run a timed trigger as frequently as every minute, 5 min, once a day, whatever makes sense for what you are trying to do. From there the Google Script function and pretty much do anything you want. I’ve used it to add new users to Mailchimp, send files to Amazons S3 service, send SMS messages using Twilio, send emails of course via the sheet owners email access functions, but if email limits are an issue I have used Sendgrid to send the emails. Pretty much anything that has an API and sample Javascript code examples, can be accessed via a Google script with the data coming from the Googles sheet. Instantaneous running of a script function is not possible at this time.
But to answer the original question Zapier would not be triggered on a Glide form submit.
Twilio has it’s own Google Sheet integration with Apps Scripts
I am using this and manipulating it in my scripts to achieve what I want which includes notifications on:
Form submission (Addition of new rows)
Status change of row (Editing of existing rows)
Time based (reminders calculated based on status and time)
All of this manipulation has to be done in GSheets. Unfortunately that’s not possible in Glide Tables/GDE yet.
In my app the lag is usually between 30 seconds and 1 min.
Since you know Google Script, can you take a look at my script below? I took the Send SMS from Sheet example from Twilio. I just am not familiar enough yet with google scripts to spot the (likely obvious) error in the code. When I run the script, I get a “no phone number” error from Twilio. One question I have is how does the script know which sheet to use if the sheet is not specified in the script. Thank you for any help.
UrlFetchApp.fetch(messages_url, options);
}
function sendAll() {
var sheet = SpreadsheetApp.getActiveSheet();
var startRow = 2;
var numRows = sheet.getLastRow() - 1;
var dataRange = sheet.getRange(startRow, 1, numRows, 2)
var data = dataRange.getValues();
for (i in data) {
var row = data[i];
try {
response_data = sendSms(row[4], row[12]);
status = “sent”;
} catch(err) {
Logger.log(err);
status = “error”;
}
sheet.getRange(startRow + Number(i), 3).setValue(status);
}
}
Do you have an empty row somewhere in the sheet?
Try adding something like console.log([row[4], row[12]]); immediately after the line where you call the sendSms() function, and then examine the log afterwards. This will allow you to pinpoint which row is triggering the error.
Because this…
The answer is that it doesn’t know which sheet to use. It just uses whichever sheet happens to be open (active) at the time, which may or may not be the correct one. Much better to do something like:
var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName('YOUR_SHEET_NAME');
I am trying to qualify the onChange trigger to run a script ONLY when a new row is added. It currently triggers when a new row is added and when changes are made to cells. I ran across changeType and am stumped on making it work. Relevant code:
function newRow(to, body) {
var ss = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
if(e.changeType === ‘INSERT_ROW’){
I was looking to do something similar - use the “On submit” action as a Zappier trigger but it doesn’t seem to work even though you technically can select Zapier as an action in the on submit action options. I just want to send a confirmation e-mail to the user once they submit the form.
My question is, will this capability be enabled in future? The answer wasn’t clear to me in the thread so thought I’d ask.
I’ve tried setting it up on the submit as a custom action and on its own using the on submit Zapier options but I get the above error each time. I get the same error when I try to trigger the zap on a button so wasn’t sure if i’m doing something wrong or i’m trying to do something that can’t be done yet.