Logo
For example "scheduled tasks"
Search
Info
Content
Category Navigation
  • 🎯  Solution Guides

  • Low Code Solutions

    Add "Tabs" to your app

    ID Target Link

    Use an address field to display a static street view thumbnail

    Turn your menu into a fixed menu

    Auto close mobile menu

    Display record information in a card

    How to add a back button to your app

    Add a collapsible accordion element to your app

    Code Snippets

    PHP Curl Create New Record

    PHP Get Records With Filters

    Google Scripts - Get record and create new records from connected table

    Save Tables and Fields into Spreadsheet

    Google Scripts - Export all records

    Webhook to save deleted records

    Send Messages to Slack

    Restrict Space and Force Uppercase in a Form

    Building Advanced Features

    Use Validation Rules to Ensure Unique Votes Per User

    Use Record Rules to Create an Audit Log

    Track current inventory with transactions

    Schedule Bookings and Prevent Double Bookings

    Create orders with multiple items and varying quantities

    2 Step Forms

    Unique Record Validation

    Restrict Editing Records to Record Owners

    Sum date/time field

    Duplicate Records

    Advanced App Customization

    How to embed a Tadabase page on another website

    Adding external fonts

    Custom Favicon

    Making apps mobile friendly

    Show date/time as a countdown

    Importing many images at once

    Adding QR Codes

    Adding charts to PDFs

    Customizing your app shortcut for mobile phones

    Animate parts of a page

    Design Customization

    Changing background colors

    Set background colors to the edge of a page

    Change the background of a column

    Add padding around a component

    Using an image as background for a page

    Adding a background image to a row, column, or component

  • Duplicate Connected Records

Categories
🎯 Solution Guides
Code Snippets
Webhook to save delete...

Webhook to save deleted records

Save record prior to deletion

Objective: In this example our primary goal is to track each record that was deleted from our table inside a Google Sheet. 

Start by creating a new Sheet and open the script editor

In the script editor paste the following code in but replace each instance of the parameter with the name of your data.  

function doPost(e) {
  //Let's get the active sheet
  var sheet = SpreadsheetApp.getActiveSheet();
  
  //Save each value as variable.
  var id = e.parameter['id'];
  var name = e.parameter['field_36'];
  var email = e.parameter['field_40'];
  var phone = e.parameter['field_42'];
  var value = e.parameter['field_44'];
  var date = e.parameter['field_45'];
  
  //Add values into a new row
  sheet.appendRow([
    "Record Deleted", 
    id,
    name,
    email,
    phone,
    value,
    date
  ]);
}

should look like this: 

 

Make sure to select "New" each time you make a change in your code and publish

 

 

Copy the address from this URL and paste it as the address for the webhook in your app. 

When a record is deleted you should now see that record in the spreadsheet. 

 

How did we do ?

Previous Article
Google Scripts - Export all records
Next Article
Send Messages to Slack
Article Navigation
  • Save record prior to deletion
  • Back to top
    API
    100% Operational
    Apps
    100% Operational
    Builder
    100% Operational
    Overall Status
    100% Operational