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

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
    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
    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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard