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 / Insert Multiple People...
Power Apps
Answered

Insert Multiple People Picker Field to SharePoint From PowerApps Gallery Combo Box

(0) ShareShare
ReportReport
Posted on by 59

Hi,
   Now I am working on PowerApps that includes a gallery control.The Gallery Control consist of ComboxBox Associate with Office365Users Connectors. I have one MultiPerson Field in sharepoint. I want Insert all gallery items to sharepoint list includes that people combobox selected values also. But How to insert all comboxbox selected items to sharepoint.

Thanks

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

    Hi @kameshm 

     

    You need to change the data structure of selected Office365Users from combobox to fit the structure of Person field in SharePoint.

    The data structure of multi-select person field is a table with Chaims, Email, Department, JobTitle, Picture column.

    If you are try to use ForAll function to save all gallery items to sharepoint list, I made a similar test, and the code should resemble this:

    ForAll(
     GalleryName.AllItems,
     Patch(
     'SP list',
     Defaults('SP list'),
     {
     Title:ThisRecord.TextInputName.Text,
     PersonFieldName: DropColumns(
     AddColumns(
     ShowColumns(
     ThisRecord.ComboBoxName.SelectedItems,
     "Mail"
     ),
     "Claims",
     "i:0#.f|membership|" & Mail,
     "Department",
     "",
     "DisplayName",
     "",
     "Email",
     "",
     "JobTitle",
     "",
     "Picture",
     ""
     ),
     "Mail"
     )
     }
     )
    )

    Hope this helps.

    Sik

     

     

     

     

     

     

  • kameshm Profile Picture
    59 on at

    @v-siky-msft  Yeah Thanks. Its working. I have another problem over. I have one ComboBox Its show only one People at a time. By default I set the defaultselecteditems by  below


    Table({
    '@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
    Claims: "i:0#.f|membership|"&Gallery2.Selected.Organizer ,
    DisplayName:Office365Users.UserProfile(Gallery2.Selected.Organizer).DisplayName
    ,
    Email:Gallery2.Selected.Organizer
    })

     

    But My problem is I can,t get email value fromc combobox. I am using Below rule 

    ComboxBox.Selected.Mail. But It didnt give any mail. Am missing something else

  • Verified answer
    v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @kameshm ,

     

    What is the Items property of combo box? What is Gallery2.Selected.Organizer?

    It seems the combobox.items is office365 users, right? If so, your DefaultSelectedItems is wrong as the data structure is for Person field of SharePoint, please modify as follows.

     

    Office365Users.SearchUser() //Items property of combobox

    Office365Users.SearchUser({searchTerm: Gallery2.Selected.Organizer }) //DefaultSelectedItems property of combobox

     

    Hope this helps.

    Sik

     

  • kameshm Profile Picture
    59 on at

    @v-siky-msft  Thanks . Its also worked.

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 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard