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 a gallery...
Power Apps
Answered

How to patch a gallery into dataverse or CDS??

(0) ShareShare
ReportReport
Posted on by 22

How to patch a gallery into dataverse or CDS??

Categories:
  • mahoneypat Profile Picture
    1,720 on at

    If your gallery items are not already a collection, you could create a collection and Path that to CDS.

    Solved: Collection to CDS or Table - Power Platform Community (microsoft.com)

     

    Pat

  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Dushy ,

     

    No matter where the data comes from, you could use Gallery.AllItems.

     

    You only need to ensure that the data type of the data is consistent.

     

    I assume:

    My data comes from sharepoint list.

     

    I did the test for you:

    1\ This is my list ‘LIST90’. ‘Test’ is a Single line of text column.

    v-xiaochen-msft_0-1615363926031.png

     

     

    2\ Create a table ‘TEST 5’ in CDS. ‘Test2’ is a Text column.

    v-xiaochen-msft_1-1615363926038.png

     

    3\ I save the value of the Title column in the list to the Name column in the CDS.

    I save the value of the Test column in the list to the Test2 column in the CDS.

     

    4\ Add a gallery control ‘Gallery2’ and set its Items property to:

    LIST90

     

    5\ Add a button control and set its onselect property to:

    ForAll(Gallery2.AllItems,Patch('TEST 5',Defaults('TEST 5'),{Name:ThisRecord.Title,Test2:ThisRecord.Test}))

     

    6\ The result is as follows:

    v-xiaochen-msft_2-1615363926040.png

     

     

    Best Regards,

    Wearsky

    If my post helps, then please consider Accept it as the solution to help others. Thanks.

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard