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
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (2,426)