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 / How to patch files ona...
Power Apps
Unanswered

How to patch files onaddfile to a specific record ?

(0) ShareShare
ReportReport
Posted on by 496

Hello everyone,

I hope all is well,

 

My Concern:
I'm trying to patch the added file to a column of a specific record using onAddFile, but it's not working. How can I achieve it?

 

What I've tried:

 

Set(NBofAttach,CountRows(DataCardValue7_2.Attachments));



 ForAll(
 DataCardValue7_2.Attachments As aCol,
 Patch(
 'Leave Requests',
 LookUp('Leave Requests', 'Leave Request (cr884_leaverequest)' = LR_Requests_Gallery.Selected.'Leave Request (cr884_leaverequest)'),
 {
 Attachments:aCol.Name
 
 
 }
 )
 )

 

 

 

The error that I've got:

Roberto_el_Hajj_0-1678304460563.png

 

Any help would be highly appreciated,

 

Thank you 🙂..

Categories:

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