I´m trying to create something that´s supposed to be simple… to monitor a Google Drive folder, and send an notification email (can be a Slack message too) whenever a file is created, modified/updated, or deleted from that folder (and, ideally, its subfolders…). I managed to come up with something for the creation/update, but the deletion is not working.
My approach was to add an IF node checking if the {{ $json[“trashed”] }} is true or not… However, this is not working, apparently, since it doesnt get the file deletion.
The be honest I´m very frustrated with the Google integration, but if I manage to make at least this work, it would be nice… does anyone here went through something similar? Any ideas on how to accomplish that?
Thanks in advance guys!
What is the error message (if any)?
There is no error message, it simply doesn´t “see” when the file is sent to trash. It worked when the file was created, when it was modified, but not when the same file was deleted.
Welcome to the community @thiago-bureau and sorry to hear that you’re struggling with the Google Drive node. I don’t think the current Google Drive node supports watching deleted files but you might be able to use a Schedule trigger node + HTTP request node and make a custom API request to look for trashed files within a certain interval
@aya
I also want a n8n Trigger that fires when a file is deleted or removed from a folder.
Will the GDrive Trigger “changes involving a specific folder” inform me when a file is deleted from a folder?