cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Users Online
Currently online: 4 members 4,719 guests
Recent signins:
Please welcome our newest community members: