Fetching list of files in deleted folder
Hi,
I'm trying to figure out what files were in a folder that's deleted. The Webhook flow set up to trigger on FOLDER.TRASHED works fine and I get the folder ID. Using BoxTrash will give me the folder name and path (which is within /Trash, of course). But I see no way to fetch the files that were within it.
I tried:
- Iterating over the children objects of the folder. Failed because the folder id is currenty deleted.
- the BoxSearch method, looking for files with the folder ID as an ancestor folder. Again, failed because the deleted folder now "does not exist".
- As far as I can see there are no FILE.TRASHED events triggered when we have a webhook set up and the folder is deleted. To my understanding, this does happen when we are just listening for events instead of using the webhook.
Could someone help with the right way to do this? Thanks in advance!
Sudarshan
Please sign in to leave a comment.
Comments
0 comments