cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

When a file is Created, Modified, or Deleted SharePoint Flow

I just started using power automate a couple weeks ago so I'm definitely a rookie at this. Anyways, so far my flow looks like the photo attached below. This allows any creation/modification that takes place in Folder A to occur in Folder B, except when you delete the file in Folder A. I would like to add on to my flow to include if a file is deleted in Folder A then the connected file is deleted in Folder B. Any suggestions how I could make the deleting part of this work? Or you can tell me I'm crazy for thinking this is possible! Thanks!

 

Capture.JPG

2 REPLIES 2
Highlighted
Super User III
Super User III

Re: When a file is Created, Modified, or Deleted SharePoint Flow

Hi @Russel1 

 

You need another flow which triggers against the deletion. It won't be possible to add the logic in your existing flow.

 

 

image.png

 

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
Highlighted
Dual Super User III
Dual Super User III

Re: When a file is Created, Modified, or Deleted SharePoint Flow

Hi!

Which mechanism do you currently use to match files in Folder A and B? I mean, does 'when a file is deleted' return enough file related info, like the ID, or the filename, so can identify the connected file in Folder B?

 

As explained in the following thread, "...using the "When an Item is Delete" step is VERY limited. The output from that trigger gives you no useful information on the deleted item. And while it DOES provide you the item's ID, using a follow-up 'Get Item' using that ID returns nothing..."

https://techcommunity.microsoft.com/t5/powerapps-flow/how-to-update-list-item-in-list-2-when-list-it...

 

So, if you connect filed in Folder A and B by means of their ID, fine. If not, we got a problem. Assumen the problem exists, may I suggest to implement a second Flow, based on the recurrence trigger, executed daily, goes all trough files in Folder B, tries to find their mirror file in Folder A, if not found, delete file in Folder B.
Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



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.

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (6,097)