Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

save attachment to a sharepoint list

(0) ShareShare
ReportReport
Posted on by

Hi,

i copied an attachment componnet from a form to my app screen, i.e. the attachment is not part of an edit form.

how can i save it into the sharepoint list?

i tried the below, but its not working:

Patch('Brief Process',
 Defaults('Brief Process'),({
..
..
 Attachments:AttachmentField.Attachments})

thanks,

Eyal

  • Ramole Profile Picture
    Super User 2024 Season 1 on at
    Re: save attachment to a sharepoint list

    Hi @Perez 

     

    If you want to add a attachment to a SP list item using Patch function directly, I afraid that there is no way to achieve  in PowerApps currently.

     

    You can do it via Attachments field within the Edit form. Use a formula like below:

     

     

     

    Patch('Brief Process',
     Defaults('Brief Process'),({
    ..
    ..
     },YourEditFormName.Updates)

     

     

     

    If this post helps, then please consider Accept it as the solution to help the others

     

  • EP-29071004-0 Profile Picture
    on at
    Re: save attachment to a sharepoint list

    Hi @Ethan_R ,

    thanks for your reply.

    i tried the method explained in Shane's video, but didn’t succeeded.

    in the video it is saved into a document library while I’m trying to save into a SharePoint list.

    i made the following necessary changes:

    1. i used the add attachment activity rather than create file
    2. after the patch activity into the list i added this formula:

     

    EasyUpload.Run(Last(AttachmentField.Attachments).Name,"" ,"",varBase64Only,Last(Sort('Amdocs Agency - Brief Process',ID,Ascending)).ID);

     

     

    i couldn’t add it a s part of the patch as i need to get the ID of the created item.

    any idea?

     

     

  • Ethan_009 Profile Picture
    4,838 Super User 2025 Season 1 on at
    Re: save attachment to a sharepoint list

    Hi @Perez ,

    I would like to suggest you this YT Video from Shane.

    I've used it and it simply works perfectly.

     

    Hope this helps.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1