cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Mattw112IG
Impactful Individual
Impactful Individual

Power Apps and Attachments

I could probably write a flow to do this, but I'd really like this to be as instantaneous as possible within the app and flows usually can take a while.

 

So...

 

I have a SharePoint list that contains attachments.

I have a second SharePoint list that I would like to copy the attachment from the first list to.

 

The first list only has 1 attachment per list item.

 

I have a patch statement that does not give me any errors, but also does not copy the attachment.

 

Patch(
    Attachments,
    Defaults(Attachments),
    {
        Candidate_x0020_ID: First(colLastCandidate).ID,
        Title: "Resume",
        Description: "Uploaded with New Candidate",
        Attachments: LookUp(
            Candidates,
            ID = First(colLastCandidate).ID
        ).Attachments
    }
)

 

What do I need to do to get the attachment from one list to another?  convert to json, do something  Base64, ...  not sure.

 

Thanks,

Terry

1 REPLY 1
WarrenBelz
Super User
Super User

Hi @Mattw112IG ,

Easily with a Flow - send the two IDs and get the attachments from one and then attach to the other, but not possible as far as I know directly (after it is saved).

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,850)