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 Apps
Unanswered

Collect/Patch

(0) ShareShare
ReportReport
Posted on by 157

I'm working on a simple form integrated with SP List, consist from Title,Body, Attachment 

for some reason I want to use Patch function.

 

my issue with the attachment box, when I add a file it create a new row in SP List ( without the attachment ) , and when I add two files it create two rows in SP List (  without the attachment ) and so on. 

 

in AttahmentBox.OnAddFile : 

ClearCollect(CollectAttachment,AttachmentBox.Attachments)

and I can see the collection data in collection menu

 

in AddIcon.OnSelect :

 

Set(
 SubmitNewNote,
 ForAll(CollectAttachment,
 
 Patch(
 NoteList,Defaults(NoteList),
 {
 Title:Gallery1.Selected.Title,
 Body : DataCardValue1.Text

 }
 ))
)

please I need help to adjust my code so I can save attachments to the SP List

Categories:
  • CU-18081211-6 Profile Picture
    9,272 Moderator on at

    I'm affraid that working with attachaments is posibile in powerapps only inside a form.

    Please check this article: 

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/controls/control-attachments

  • PowerAddict Profile Picture
    7,316 Most Valuable Professional on at
    While @gabibalaban is correct, I wanted to highlight something - you can have a form with just the attachments field (or all fields in one form) and along with your Patch function, you can do Form.Updates within your Patch to take care of the attachments.

    ---
    If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

    Hardit Bhatia
    https://thepoweraddict.com

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard