Delete older row and keep latest row

Hi Guys

I have create an automation to send all the latest stoctake to another table. But I don't how to create and action to delete the older row by Standard Tool ID grouping every time a stocktake form is save (submitted). Example tool ID HT278-1-STRIPER-ST in row 24,27 & 30. I want to delete row 24 & 27 then keep latest timestamp 8/15/2023 17:09:21 at row 30.

desmond_lee_0-1692513312372.png

This is the bot without delete row.

desmond_lee_1-1692513717886.pngdesmond_lee_2-1692513740102.png

 

Solved Solved
0 7 131
1 ACCEPTED SOLUTION


@desmond_lee wrote:

bots delete only the content and leaves a blank row


 

That's just how delete works. Don't worry about it.

View solution in original post

7 REPLIES 7

Hey @desmond_lee , i also working with Data that contain date to indicate newer Data

In my case, im using GSheets rather than AppSheet function to get the latest Data that indicates which is the newest within the ID 

Try to use SORT feature in GSheets to get it like i did

 

 

Use a reference action to run delete on all rows with the same tool id and with timestamp < thisrow timestamp.

Hi Marc

Any sample of such case or discusiion somewhere? No idea how to write this expression

Hi

I mange to get this but something still wrong somewhere. Intend to delete the row what bots delete only the content and leaves a blank row. Any idea how to resolve this? The action and bot is in below

desmond_lee_0-1692762991013.png

Delection ACTION. I use the Appshhet builtin DELETE feature it dosen't work too

desmond_lee_1-1692764026912.png

Execute or trigger at form sumbit

desmond_lee_2-1692764110562.png

Expression at execute 

desmond_lee_3-1692764138173.pngdesmond_lee_4-1692764175602.pngdesmond_lee_5-1692764196446.pngdesmond_lee_6-1692764214039.png

 

 


@desmond_lee wrote:

bots delete only the content and leaves a blank row


 

That's just how delete works. Don't worry about it.

Oh really. Kinda surpirse to me. Its ok I will use script to delete the blank row

Resolved with external script

Top Labels in this Space