web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard