• Instructions to Ask a Question

    For any assistance, please click the "Ask a Question" button and select the Pabbly product for which you require support.

    We offer seven comprehensive applications designed to help you efficiently manage and grow your business:

    Our support team endeavors to respond within 24 business hours (Monday to Friday, 10:00 AM to 6:00 PM IST). We appreciate your understanding and patience.

    🖤 BLACK FRIDAY DEALS ARE NOW LIVE! 🖤

    🔥 Enjoy an exclusive 10% discount on our LTD Plan — first-time ever offer!

    🚀 Unlock the Pabbly Plus Unlimited Yearly Plan and get unlimited access to every Pabbly application at a truly unbeatable Black Friday price.

    👉 Grab the Black Friday Offer

404 error in webhook from Google Sheets

Im getting this error Exception: Request failed for https://connect.pabbly.com returned code 404 at editRow(Code:35:17) from a Google sheets that works sending a webhook to pabbly, it has been working fine for months but today It stopped working, can anyone help me?

The script send the information when a new row is added in google sheets to a webhook in pabbly

Code:
function citatel(e) {
  if(e.changeType=="INSERT_ROW"){ //The type of change (EDIT, INSERT_ROW, INSERT_COLUMN, REMOVE_ROW, REMOVE_COLUMN, INSERT_GRID, REMOVE_GRID, FORMAT, or OTHER)
    var spreadsheet = SpreadsheetApp.getActiveSpreadsheet(); //get activated Spreadsheet
    var sheet = spreadsheet.getSheetByName("citatel"); //get sheet by sheet name
    var headings = sheet.getDataRange().offset(0, 0, 1).getValues()[0]; //get heading
    var column_to_watch = 8; //A=1, B=2, C=3 etc...
    
    var row = sheet.getActiveRange().getRow();
    var column = sheet.getActiveRange().getColumn();
    
    if (e.changeType=="EDIT" && column != column_to_watch)
      return;
    
    var values = sheet.getSheetValues(
        row, // starting row
        1, // starting column
        1, // number of rows
        10 // number of columns
    );
    
    var payload ={}
    
    for (i = 0; i < headings.length; i++) {
      var name = headings[i];
      var value = values[0][i];
      payload[name] = value;
    }
    payload["row_number"] = row;
    
    var options = {
        'method': 'post',
        'contentType': 'application/json',
        'payload': JSON.stringify(payload)
    };
    UrlFetchApp.fetch('https://connect.pabbly.com/workflow/sendwebhookdata/IjU3NjUwNTZhMDYzNTA0MzE1MjY0NTUzZDUmMzUi_pc', options);
  }
}
 
Top