Forum Discussion

GeorgeBramhall2's avatar
GeorgeBramhall2
Qrew Cadet
5 years ago

Automation that deletes old data from prior automation runs

I am running an automation that dumps data from one table in to another table. When I run an automation I need to have another automation delete all prior data in the table so that only data from the new automation run exists. I only want the data from the most recent run to exist in the table. What does the delete data automation look like?

------------------------------
George Bramhall
------------------------------
  • Will there always be less than 1,000 records to be deleted?

    ------------------------------
    Mark Shnier (YQC)
    Quick Base Solution Provider
    Your Quick Base Coach
    http://QuickBaseCoach.com
    mark.shnier@gmail.com
    ------------------------------
    • GeorgeBramhall2's avatar
      GeorgeBramhall2
      Qrew Cadet
      Hi Mark,
      If I trigger the Automation, then less than 1000 records need to be deleted. I have not tried this automation in a daily schedule for all records in the parent table, but is quite likely at some point we could be deleting over 1000 records at once in the receiving table.

      ------------------------------
      George Bramhall
      ------------------------------
    • EssenceQB_Admin's avatar
      EssenceQB_Admin
      Qrew Member
      Hey Mark, Do you have a solution for both? I just ran into the 1000 record restriction and need ideas for solving this issue.

      As for the deletion automation, IF it is less than 1000 records, and your automation is running on a set schedule, you could run the deletion automation based on the date the records were created a set number of days in the past. It would look like:
      Date Created -> Is Equal To -> The Date Value -> <input number of days> -> Day(s) in the past

      If it is more than 1000 records, I would love to here some solutions.


      ------------------------------
      Ray Moss
      Essence QB Admin
      Essence Cabinets Inc.
      Edmonton, AB, CAN
      ------------------------------
      • GeorgeBramhall2's avatar
        GeorgeBramhall2
        Qrew Cadet
        Thanks Essence. Since my users can run a triggered automation more than once in a day the solution above does not work here. I have to have the latest automation records in the table only. I can't use the Max Summary (date/time) to filter because the records added by the automation potentially can run across a different time stamp (usually only by a minute or so).

        ------------------------------
        George Bramhall
        ------------------------------