Hemant Kumar
Hemant Kumar

Reputation: 73

Delete files from destination if deleted from source using logic app

I am copying folders along with files from sharepoint to Azure Blob. I am using the below workflow- enter image description here

I am doing a dailyload. the create blob action will copy all the folders and files.

Issue is when few files are deleted from sharepoint (source), it should be deleted in azure blob too. In current scenerio, using create action this is not possible. What should be the approach?

How can i delete complete files and folders from blob and do a create blob action?

Upvotes: 0

Views: 400

Answers (1)

RithwikBojja
RithwikBojja

Reputation: 11383

You can use below design:

enter image description here

Then:

enter image description here

Now after deleting the file in sharepoint, the same file will be deleted in Blob storage.

Deleted file:

enter image description here

Output:

Whenever file deletes this will trigger and deletes the blob:

enter image description here

enter image description here

Upvotes: 2

Related Questions