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 Apps / save attachment to a s...
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

Categories:
I have the same question (0)
  • Ethan_009 Profile Picture
    4,838 Moderator on at

    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.

  • EP-29071004-0 Profile Picture
    on at

    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?

     

     

  • Ramole Profile Picture
    Super User 2024 Season 1 on at

    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

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 342 Most Valuable Professional

#2
11manish Profile Picture

11manish 234

#3
Valantis Profile Picture

Valantis 187

Last 30 days Overall leaderboard