cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
james_riach
Level: Powered On

Check if an attachment already exists in a SP list

Hello,

 

When an item is created in SP list A the Flow creates the same item in list B with attachments. That works fine. Now when the the item is modified in list A the flow is trying to make the same changes to the item in List B and is working to a point. The problem I am facing is that when the flow is trying to make the changes and add any new attachments to the item it hits the following problem: 

"The specified name is already in use.\n\nThe document or folder name was not changed.  To change the name to a different value, close this dialog and edit the properties of the document or folder.\r\nclientRequestId: 19504cc1-d7ba-4b67-9e2d-86526f7f7413\r\nserviceRequestId: a2887d9e-3054-6000-eb17-c62ae061486e"

So it is not working due to the name of one or more of the attachements already existing in the list for that item.

 

I want to try and find a way to check if the attachment already exists in List B and if it does only add new attachments that have been added.

 

Is there a way to do this?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Check if an attachment already exists in a SP list

Hi @james_riach,

 

Could you please share a screenshot of the configuration of your flow.

 

You could take a try to delete the item in the List B firstly, and then create a new item in the List B when an item is modified in list A.

 

Best regards,

Alice

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

Re: Check if an attachment already exists in a SP list

Hi @james_riach,

 

Could you please share a screenshot of the configuration of your flow.

 

You could take a try to delete the item in the List B firstly, and then create a new item in the List B when an item is modified in list A.

 

Best regards,

Alice

View solution in original post

james_riach
Level: Powered On

Re: Check if an attachment already exists in a SP list

Hi Alice,

 

Thank you for your reply.

 

I used your suggestion to delete all the attcahments first and then add them again and that has worked for me so thank you for your help with this Smiley Happy

 

James

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Users online (5,032)