cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dmclaughlin
Post Patron
Post Patron

attachment will not save to sharepoint list

I have a form that has 2 sharepoint lists, one  a list of requests, one a list of parts.  The part sharepoint list has an attachment.  When the user creates a request and select a part I have a lookup to the part list to pull in the attachment.  I can actually see that in the form. Howerver when I save the request the attachment does not save to the request list.  Any ideas

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User
Super User

@dmclaughlin \

Doesn't even need to be that complicated.

Basically what you will do in the flow (in basic-speak, not specific) is get the record you want, then do an Apply To Each for the Attachments of that record.  In the Apply To Each, you will get the attachment content, and then add the attachment to the other record.  

You shouldn't need to create any arrays or anything else.  Just those steps should work fine.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

7 REPLIES 7
RandyHayes
Super User
Super User

@dmclaughlin 

You cannot copy attachments from one record to another by referencing the attachments like that.  You either need to have the user attach them, or enlist the help of PowerAutomate to transfer the attachments.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
dmclaughlin
Post Patron
Post Patron

wow.. powerapps really needs some improvements

RandyHayes
Super User
Super User

@dmclaughlin 

Attachments have always been weak.  There are a lot of moving parts to consider on it. 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

So I wrote a power automate.  Got the attachment from the one list and added attachment to the other list and did update  item.. Worked great.  But sometimes I have multiple attachments that need to go from 1 list to the other.  So I created an attachment array,  got the attachments from the one list appending to that array. But now I'm stuck.  How do I update the other list?  The update item doesn't have a place for the attachment.  I cant use the add attachment like I did if just 1 attachment because its an array.  Ideas?

RandyHayes
Super User
Super User

@dmclaughlin \

Doesn't even need to be that complicated.

Basically what you will do in the flow (in basic-speak, not specific) is get the record you want, then do an Apply To Each for the Attachments of that record.  In the Apply To Each, you will get the attachment content, and then add the attachment to the other record.  

You shouldn't need to create any arrays or anything else.  Just those steps should work fine.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
dmclaughlin
Post Patron
Post Patron

Randy, so can you peak at my example attached.  I was doing what you described already but it only pulls in the 1 attachment not all.   Do you see where I'm going wrong?

dmclaughlin
Post Patron
Post Patron

IT WORKS! I just needed to get my looping in the right spot to get multiple attachments to be added to the 2nd list.!!!!!!!!!tx

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (4,335)