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 / 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:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,127 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

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 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard