Hi All,
I am developing a Power automate which copies SharePoint list attachments to document library with when an item is created/modified trigger. I am also copying the metadata associated with list to document library columns.
The power automate is working fine when item is created. However, when same item is being modified, Power automate fails saying the file already exists in document library. I understand we can use Delete file option in Power automate, however in my scenario, I can't delete that file in library, as I am using that metadata in my Powerapps and want to preserve those metadata. I don't want to overwrite those metadata by deleting a file and copying it again.
Is there anyway where I can include a check to restrict copying the file from SP list attachments array, if file already exists in library ? Any advice would be helpful.

Report
All responses (
Answers (