cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper IV
Helper IV

When an Item is deleted trigger - Saving a copy of the item to another list?

Hi,


This might be an odd ball question, I need to have a full audit trail of items within a list particularly item deletes.  What I'd like to do is when a user deletes an item a copy of that item is stored in another "secure" list.  The flow is triggered by the "When an item is deleted" trigger.  The next action is "Get Item" where I am trying to grab the detail of the item and then using "Create Item" creating the deleted item in another list.

 

flowdelete.png

 

The flow stops at the second action with a 404 which I guess kinda makes sense as the item is deleted....

 

flow404.png

 

Any thoughts/help gratefully received.

 

Rob

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

Re: When an Item is deleted trigger - Saving a copy of the item to another list?

Hi Rob,

 

Flow triggers after the item is deleted. It only give the below information.

 

{
"ID": 2,
"Name": "Title2",
"FileNameWithExtension": "Title2",
"DeletedByUserName": "Mark",
"TimeDeleted": "2019-12-12T23:04:15Z",
"IsFolder": false
}
 
So in your case Get Item cannot find the details because the item is already deleted hence you getting 404 item not found.
 
Another work around I can think is add a flag called Delete Y/N. Trigger against this field update. Move the item details across another list then delete the item via flow action. Also you need to set some securities around where users can't delete the list items.
 
Thanks
 
 


Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog

Power Automate Video Tutorials

View solution in original post

3 REPLIES 3
Highlighted
Super User III
Super User III

Re: When an Item is deleted trigger - Saving a copy of the item to another list?

Hi Rob,

 

Flow triggers after the item is deleted. It only give the below information.

 

{
"ID": 2,
"Name": "Title2",
"FileNameWithExtension": "Title2",
"DeletedByUserName": "Mark",
"TimeDeleted": "2019-12-12T23:04:15Z",
"IsFolder": false
}
 
So in your case Get Item cannot find the details because the item is already deleted hence you getting 404 item not found.
 
Another work around I can think is add a flag called Delete Y/N. Trigger against this field update. Move the item details across another list then delete the item via flow action. Also you need to set some securities around where users can't delete the list items.
 
Thanks
 
 


Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog

Power Automate Video Tutorials

View solution in original post

Highlighted
Community Support
Community Support

Re: When an Item is deleted trigger - Saving a copy of the item to another list?

Hi @Rob_CTL ,

 

As @abm said, you couldn't get the content of the item when the item is deleted.

 

Best regards,

Alice       

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Highlighted
Helper IV
Helper IV

Re: When an Item is deleted trigger - Saving a copy of the item to another list?

Thanks @abm that is what suspected would be the case.  

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (7,125)