cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Sathya2
Helper III
Helper III

Copy attachments from SP List2 to SP List1

Hi

 

  1. I am having two lists : SP List 1 & SP List 2
  2. SP List 2 will have the attachments with the SP List 1 ID(ID in SP List1 will act as Foreign Key).
  3. In SP List2 , each item will have only one attachment(so duplicate attachments will be there with same SP List 1 ID)
  4. From the power apps, I will send the SP List 1 ID as the trigger to the flow. 

Sathya2_3-1642171256976.png

Here both the items under the Form ID 4 are having same attachments.

We all know that attachments column will not save duplicate files even though we upload n number of same files in attachment data card.

Sathya2_0-1642416916407.png

Sathya2_1-1642416978936.png

Sathya2_2-1642417100378.png

 If the list 2 contains distinct files, the flow is working fine.

 If the list 2 contains any duplicates , distinct files are copied to list 1(operation is done) but the flow fails.

 

Please help me on this.

 

 

 

 

 

4 REPLIES 4
abm
Super User
Super User

Hi @Sathya2 

 

Could you please explain bit more about what error are you getting?

 

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

Hi, Thanks for your reply,

 

  1. I am moving the attachment from List 2 to List 1,
  2. If the attachment already exist in List 1,the loop is getting failed.
  3. I need to add a condition control before add attachment action.

Thanks for your reply. Whats the error you getting?



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

Sathya2_0-1642515389619.png

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (4,076)