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 / Build PowerApp using G...
Power Apps
Unanswered

Build PowerApp using Gallery to populate multiple rows from Ref table

(0) ShareShare
ReportReport
Posted on by 29
Hello, 
Requesting support on building an application using PowerApps for the following sample requirement. 
 
Build a ‘Project Allocation app’ using which users should be able to select and assign multiple employees to a project and add allocation to them in one shot. 
 
Allocation table structure is shown below- Employee ID and Project ID act as composite key for this table which are primary key in Emp and Project tables respectively. 
prabakar21_0-1707843425967.png

 

I have built an application using Radio control, gallery and Edit Forms which facilitate adding one employee at a time. (as shown below). Employee Names in Radio button are populated from Employee table, Project Names for Gallery are populated by Project table. The Edit Form loads the data to Allocation table.  
 
But the requirement is to on-board multiple employees at a stretch. 
 
Request any ideas/suggestions on building this requirement please. 
 
prabakar21_1-1707843453428.png

 

Categories:
I have the same question (0)
  • gizmobrat Profile Picture
    63 on at

    My suggestion would be to create a collection as a buffer to hold all the employees you wish to onboard. An then have a button that does a ForAll command with the Patch function. 

  • prabakar21 Profile Picture
    29 on at

    Hello, Thanks for your quick note. I am pretty new to PowerApps and find challenges to build the logic., appreciate your support on some sample code snippet or any reference links please. 

  • gizmobrat Profile Picture
    63 on at

    When you load multiple people onto a project are all the dates the same? If so that would make it easy. Otherwise, you might have to go through multiple edit forms in a row.

  • prabakar21 Profile Picture
    29 on at

    The dates may not be the same always. I guess, would need to have multiple forms added based on the number of employees selected. 

  • Deek Profile Picture
    31 on at

    @ShaneYoung has a great video of forall and patch which I believe are some of the mechanics your looking for. See link below for the video. 

    You may also need to leverage the look up formula when patching some of the employee allocation data.

    https://youtu.be/0xZ4fMJbLvk?si=sCM6An-i8rphG2bP

  • prabakar21 Profile Picture
    29 on at

    Thanks Deek for sharing the link. I have already on it. The video narrates how to patch multi selected values status to the same table by looking up IDs. But I have to insert the selected records as new rows in the Allocation table. That leads to the complexity.

  • Deek Profile Picture
    31 on at

    new rows you can use the patch function setting default as the base record part of the parameters for the syntax. For example

     

    Patch(tbldatasource, defaults(tbldatasource), 

    {

       Column 1: value

       Column 2: value

       Etc.....

    }

    )

     

     

    So tieng back to what @gizmobrat mentioned, maybe something like...

    Forall(gallery name ,

    If radiobutton.selected = true, patch function))

     

    I haven't messed with radio button before so I am not sure what value the button returns when you check it. In my example above I assumed it would return a true value. You could change the buttons to a check box. Believe a box that is checked returns either a "yes" or a true. 

     

    Hope this helps!

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard