Setting a date on an item when I move it to a list of things? (Creating 'trash bin')

Hi there,

I am created an ‘undo’ button on my app in the form of a trash bin—when an item is deleted it stays in a ‘trash bin’ for 30 days before it is deleted. Some of these are straightforward; I have a ‘project’ or a ‘note’ which goes into a list of ‘recently deleted’ and the date that it was deleted is set.
My issue I’m running into is that in the Note data type I have a list of images which are attached to that note. When I delete an image it can go into a ‘recently deleted’ image bin, but I can’t see if I can set the date that a recently deleted photo was moved into that bin. In other words I can’t just set a ‘deleted date’ on that photo in the same way that I can do that on the ‘project’ or ‘note’ data types because the images are just list of images.

Any workaround for something like this?

Create a new data type - for images, we gona call it [img DT]

[img DT] gona have 3 atributes

  • image
  • status (using/trash)
  • note (father)

and in the note Data type you gona change the list of images to list of [img DT]

when the user want to add a image the workflow first step is create the image and later add the image - [img DT] - in the list of the note

when the user “delete” it the workflow gona remove the image from the list and change the status of the image to “trash“

and if the user want to save the image from being deleted its only take the atribute note (father) and add the img in the list againd (dont forget to change the status)