web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Add Attachment from on...
Power Automate
Answered

Add Attachment from one SharePoint list to another SharePoint list

(1) ShareShare
ReportReport
Posted on by

Hi!

I have two SharePoint lists. When a new item is created, Power Automate copies the list item to the second list. All is working well except for 2 issues I have been unable to solve.

 

1. Add Attachment. My flow use these actions: Get Attachments > Initialize Variable > Get Attachment Content > Append to Array. After getting all the attachment info, I use the Add Attachment action to put it on the new list item in the second list. The list looks like it has an attachment, but when I go to open it, there is no content. In the File Content field, I use the expression

 

body('Get_attachment_content')

 

ahartsfield_0-1711471726113.png

 

But nothing comes through. Any ideas? 

 

2. The second issue is with a field called 'Department-Division'. In the 'Get Items' action, I see the department info in both input and output (output screenshot below). It populates the data in other parts of the flow (emails), but won't populate the second list with the department info.

 

I've checked that the columns in both SharePoint lists have identical settings. There are only 4 options to choose from in a single-select drop-down list. It doesn't make any sense that it's not pushing that one piece of information onto the new list.

ahartsfield_1-1711471956902.png

 

Thanks for any ideas you have!

Categories:
I have the same question (0)
  • Verified answer
    Nived_Nambiar Profile Picture
    18,136 Super User 2026 Season 1 on at

    Hi @ahartsfield 

     

    in the apply to each loop shown above, are you iterating body of get attachments action ?

     

    Also try this approach as well. Here is is loop through get attachments output

    Nived_Nambiar_0-1711472363050.png

     

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

  • ahartsfield Profile Picture
    on at

    Hi!

    In the Apply to Each loop I was using the expression body('Get_attachment_content')

     

    I updated my loop to move the Get Attachment and Add Attachment actions together. Now I get an "Item does not exist" error. The attachment comes through in emails that are further down in the loop, and is on the original SharePoint list, so I don't understand why I'm getting that error now

     

    ahartsfield_0-1711475266849.png

     

  • Nived_Nambiar Profile Picture
    18,136 Super User 2026 Season 1 on at

    Hi @ahartsfield 

     

    does that list item exists where you are adding attachments > could you confirm that please ?

     

    i meant second list ?

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

  • ahartsfield Profile Picture
    on at

    Yes - it gets added to the second list right before the attachment actions begin. "Create item in ESF SP list":

     

    ahartsfield_0-1711476388833.png

     

  • Nived_Nambiar Profile Picture
    18,136 Super User 2026 Season 1 on at

    Hi @ahartsfield 

     

    Since the error which shown above is coming from add attachment, could you check the id field of highlighted one in add attachment references the id parameter of create item or id of trigger output or any other one > it should id of list item created using create item.

     

    Nived_Nambiar_0-1711477286198.png

     

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

  • ahartsfield Profile Picture
    on at

    That solved the error. I had been using the ID from the initial trigger, which is "When an item is created" (on the first SharePoint list). But the attachment content is still empty on the new list. 

  • Nived_Nambiar Profile Picture
    18,136 Super User 2026 Season 1 on at

    Hi @ahartsfield 

     

    does the body u are passing in file content field is of get attachment content ?

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

  • ahartsfield Profile Picture
    on at

    Yes. The Attachment Array I'm using to pass the attachment through to email is drawing from 'Get attachment content' and it is working just fine.

  • Nived_Nambiar Profile Picture
    18,136 Super User 2026 Season 1 on at

    Hi @ahartsfield 

     

    little confused, could you share screenshot of your entire flow?

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

  • ahartsfield Profile Picture
    on at

    The flow is quite long, so I don't think you want to see all of it. I'll post screenshots of lengths of it from the beginning and if you want more info from specific blocks, I'm happy to expand those. 

     

    In this flow, when a new item is created in SharePoint list #1, I create variables for the multi-select fields, create an item in SharePoint list #2, get attachments, initialize an attachment array variable (which I use in emails later in the flow), get attachment content, append to array, and add attachment to list #2.

     

    ahartsfield_0-1711559330524.png

    ahartsfield_2-1711559624562.png

    ahartsfield_3-1711559686456.png

     

     

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 103 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 87

#3
trice602 Profile Picture

trice602 63 Super User 2026 Season 1

Last 30 days Overall leaderboard