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 / Inserting selected gal...
Power Apps
Answered

Inserting selected gallery records with additional fields to another

(0) ShareShare
ReportReport
Posted on by 10

I have table1 as source for a gallery, but the gallery has some additional controls. On selecting records on the gallery, the records to be added to may be collection and then insert to another table on button click?

I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @haripriya_adus ,

     

    I did a sample for you.

    vxiaochenmsft_0-1652247683687.png

    vxiaochenmsft_1-1652247688868.png

    vxiaochenmsft_2-1652247699774.png

    vxiaochenmsft_3-1652247768299.png

     

     

    Best Regards,

    Wearsky

  • haripriya_adus Profile Picture
    10 on at

    Thank you Wearsky. Made some progress on this but landed on another issue. My backend is dataverse. I am currently blocked on this particular issue. I am inserted selected records from a gallery based on oncheck of a checkbox to selectedActivities2 collection, which is working fine. On click of a button, I wrote this formula that should insert record to sup table with selected activity in a lookup column. The code works fine when the name is hardcoded, and the new record in sup table shows 'Activity1' value in lookup column, but the same does not work when I replace the hardcoded value with the collection field  'ActivityName'. I tried with Lookup, Filter, but nothing works. Desperately looking for help on this, if someone can kindly resolve this for me

    ForAll(selectedActivities2,
    Patch(Sup,
    Defaults(Sup),
    {
    //ActivityId:LookUp(MyActivities,Name="Activity1"),
    ActivityId:First(Filter(MyActivities,Name=ActivityName))

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

    Hi @haripriya_adus ,

     

    Have a good day.

    It seems like this is a new question.

    If you are having a new question, I suggest you create a new post to ask for help because users in the forum are more focused on new posts.

     

    Best Regards,

    Wearsky

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard