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 / Patch Nested Collection
Power Apps
Answered

Patch Nested Collection

(0) ShareShare
ReportReport
Posted on by 457

I have a requirement of patching nested collection

Collection 1 : consists of 1 column "user list"

Collection 2 consists of 2 column "Machine_ID", "Machine_Users"

 

i want to patch selected users from collection1 to within particular ID of collection 2

 

Jagadeeshk_0-1619335252865.png

 

Categories:
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Jagadeeshk :

    I've made a test for your reference:

    • I assume There are two collections:
    ClearCollect(
     'Collection 1',
     {'user list':"Mike"},
     {'user list':"Lee"},
     {'user list':"Lily"}
    );
    ClearCollect(
     'Collection 2',
     {'Machine_ID':"M1",Machine_Users:
     Table({'user list':"User1"},{'user list':"User2"})
     },
     {'Machine_ID':"M2",Machine_Users:
     Table({'user list':"User3"},{'user list':"User4"})
     }
    )
    • I assume you want to update the record of Machine_ID="M2"

    Step 1: Add a gallery(Gallery9) and set it's items property to

    'Collection 1'

    Step 2: Add a button and set it's OnSelelct property to:

    ClearCollect(
     UpdateList, /*UpdateList is my custom collection*/
     LookUp('Collection 2',Machine_ID="M2").Machine_Users
    );
    Collect(
     UpdateList,
     Gallery9.Selected
    );
    Patch(
     'Collection 2',
     LookUp(
     'Collection 2',
     Machine_ID="M2"
     ),
     {Machine_Users:UpdateList}
    )

    51.gif

     Best Regards,

    Bof

  • Jagadeeshk Profile Picture
    457 on at

    So cool. Thanks for the detailed information.  Grateful to you

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 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard