Skip to main content

Notifications

Power Automate - Building Flows
Unanswered

Copy attachments from SP List2 to SP List1

(0) ShareShare
ReportReport
Posted on by 112

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.

 

 

 

 

 

  • Suggested answer
    Enthu Profile Picture
    Enthu 4 on at
    Copy attachments from SP List2 to SP List1
    Hi Team, I need your help
    I have two SharePoint list with same item around 900 time in both SharePoint now I want to copy only attachment from list1 to list2 for each project Id  because  Project Id is a unique identifier between both list
    Please assist with any sample flow for power automate and manual trigger flow
  • Sathya2 Profile Picture
    Sathya2 112 on at
    Re: Copy attachments from SP List2 to SP List1

    Sathya2_0-1642515389619.png

     

  • abm abm Profile Picture
    abm abm 32,265 on at
    Re: Copy attachments from SP List2 to SP List1

    Thanks for your reply. Whats the error you getting?

  • Sathya2 Profile Picture
    Sathya2 112 on at
    Re: Copy attachments from SP List2 to SP List1

    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.
  • abm abm Profile Picture
    abm abm 32,265 on at
    Re: Copy attachments from SP List2 to SP List1

    Hi @Sathya2 

     

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

     

    Thanks

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Kickstarter Events…

Register for Microsoft Kickstarter Events…

Tuesday Tip #12 Start your Super User…

Welcome to a brand new series, Tuesday Tips…

Tuesday Tip #13 Writing Effective Answers…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 144,858

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,505

Leaderboard