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 / People Picker in repea...
Power Apps
Answered

People Picker in repeating section

(0) ShareShare
ReportReport
Posted on by 309

SOS How can I add people picker field in a repeating section along with other input fields? The items property of the gallery is set to a collection. I am trying to add three people picker fields in the repeating section, how can I achieve that ? Below here is what I have right now but I need  three fields to patch a people picker field and currently its just a text input and not included in the patch function.

 

Please Help! form.jpg

 

ForAll(
	 colPO,
	 If(
	 !IsBlank(TextProgName_1.Text),
	 Patch('PO', Defaults('PO'),
	 {
 Title:vendorRequest_1.LastSubmit.'Vendor Name',
 DatePrepared:vendorRequest_1.LastSubmit.'Date Prepared',
 VendorID:vendorRequest_1.LastSubmit.'Vendor ID',
 Status:vendorRequest_1.LastSubmit.Status,
 Comments:vendorRequest_1.LastSubmit.Comments,
 ProgramName:Input_ProgramName,
 CostpointID:Input_CostpointID,
 POAmount:Value(Input_POAmnt),
 PONumber:Input_PONum
	 }
	 )
	 )
	);
	ResetForm(Self);
RequestHide(); 

 

 

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

    Hi @Yemata ,

     

    Could you please tell me:

    What is 'PO'? Is it a SharePoint list?

    What is 'people picker field' you mentioned? Is it a Person column in SP list?

     

    I assume you want to update a person colunm (Do not allow multiple selections) with a textinput control. you could try:

    ForAll(
     colPO,
     If(
     !IsBlank(TextProgName_1.Text),
     Patch('PO', Defaults('PO'),
     {
     Title:vendorRequest_1.LastSubmit.'Vendor Name',
     DatePrepared:vendorRequest_1.LastSubmit.'Date Prepared',
     VendorID:vendorRequest_1.LastSubmit.'Vendor ID',
     Status:vendorRequest_1.LastSubmit.Status,
     Comments:vendorRequest_1.LastSubmit.Comments,
     ProgramName:Input_ProgramName,
     CostpointID:Input_CostpointID,
     POAmount:Value(Input_POAmnt),
     PONumber:Input_PONum,
     PersonColumn: 
     {
     '@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
     Claims:"i:0#.f|membership|" & TextInput.Text,
     Department:"",
     DisplayName:"",
     Email:TextInput.Text,
     JobTitle:"",
     Picture:""
     }
     }
     )
     )
     );
     ResetForm(Self);
    RequestHide();

     

    Best Regards,

    Wearsky

  • Verified answer
    DaynaBee Profile Picture
    309 on at

    Thank you so much Wearsky for your solution, It worked!

    Thinking if there is a better way, Is there any way you could think of I could let users pick from O365 users in the current form instead of typing in the names and email in two fields? 

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard