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 / Editable grid for docu...
Power Apps
Unanswered

Editable grid for document library

(0) ShareShare
ReportReport
Posted on by 340

Hi all,

 

I was watching this video from Reza (https://www.youtube.com/watch?v=8I0Pt_8I6k8) but wondering if the same is possible with a document library as the source rather than a list or table?

 

When I am at the save edit part, my patch command is complaining about the data type (Invalid argument type (Table). Expecting a record value instead).

 

If(
 CountRows(colTaskUpdates) > 0,
 Patch(
 'Processes',
 colTaskUpdates
 );
Notify(
 "Success",
 NotificationType.Success
 )
);
Clear(colTaskUpdates);

 

Is it possible to have this functionality for a document library?

 

da1ve_0-1666851972196.png

 

I am looking to manipulate the Status & Owner columns

 

Thanks,
David

 

Categories:
  • WarrenBelz Profile Picture
    156,570 Most Valuable Professional on at

    Hi @da1ve ,

    You won't be able to do it just matching the collection, but assuming you have the ID of the Library item to be patched in the collection

    If(
     CountRows(colTaskUpdates) > 0,
     Patch(
     'Processes', 
     ForAll(
     colTaskUpdates As aPatch,
     {
     ID: aPatch.ID,
     Status: aPatch.Status
     Owner: aPatch.Owner
     }
     )
     );
     Notify(
     "Success",
     NotificationType.Success
     )
    );

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • da1ve Profile Picture
    340 on at

    @WarrenBelz ,

     

    When you say ID of the library item - in my case is that "title" (which I renamed to "name")?

     

    da1ve_0-1666857976994.png

    So the code would be:

     

    If(
     CountRows(colTaskUpdates) > 0,
     Patch(
     'Processes', 
     ForAll(
     colTaskUpdates As aPatch,
     {
     Title: aPatch.Name,
     Status: aPatch.Status
     Owner: aPatch.Owner
     }
     )
     );
     Notify(
     "Success",
     NotificationType.Success
     )
    );

     

    Or have I got it completely wrong?

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 381 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard