Need help figuring out how to set the value of a multi select Person/Group field (Trainees) of a SharePoint list (Training Forms) within a PowerApp form, based on doing a lookup of people from a different SharePoint list (Training Groups).
Want the the user to be able to access the Training Form, use some field / control to select one or more Training Groups that map to the Training Groups list, which in turn fills in the Trainees field of the Training Form with all the people who are in each selected Training Group.
I don't want the Trainees field to be updated on the actual SharePoint list until the user has saved the Training Form. I need the user to be able to add one or more Training Groups, but then be able to edit what all people are put into the Trainees field before saving the form. Additionally, the user should be able to add a group, save and close the form, then access again and add one or more other groups, which should ADD the extra people from those groups, NOT replace the people already in the Trainees field.
Ideally it would work like this:
- The user selects Training Group A, and the following people are added to the Trainees field (only on the form, not saved to the actual sharepoint list yet): John, Tom, Laura, Jerry.
- The user then removes Jerry from the people shown in the Trainees field on the form.
- The user saves the form, and John, Tom, and Laura are saved as the Trainees for the Training Form.
- The user reopens the form and selects Training Group B, and now Scott, Anthony, and Katherine are added to the Trainees field along with the existing people (John, Tom, and Laura). The user saves the form, locking in all those people.
Any help would be greatly appreciated. Fairly new to PowerApps, so not sure how best to do this, or if this is even possible.