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 combo bo...
Power Apps
Unanswered

People picker combo box in gallery doesn’t work anymore

(0) ShareShare
ReportReport
Posted on by 149

Hi everyone,

 

If I create a new work package with lets say 3 action items (but only 2 of them with a specific person chosen in my choice field), it only submits these 2 action items . The one with an empty person choice field is not in my SharePoint list.

 

For the background of this combo box:

Name of person column in my SP list: Wunschressource

Name in my collection: LineWunschressource

Name of textinputfield: Input Wunschressource

DefaultSelectedItems on 'Input Wunschressource' : ThisItem.LineWunschressource

To create a collection to create a new work package I use 

 

NewForm('Form new work package');;
ClearCollect(Items; 
 {LineWunschressource: glbEmptyPerson})

 

In my OneStart of my app:

 

Set(glbEmptyPerson, { 
 Claims:"", 
 Department:"", 
 DisplayName:"", 
 Email:"", 
 JobTitle:".", 
 Picture:"."
 }
);

 

The DefaulSelectedItem property:

 

ThisItem.LineWunschressource

 

I was able to search for a person by typing into the combo box but this is not possible anymore. Beside the fact that rows in my gallery without a chosen Person wont be submitted to SharePoint anymore.

The error appears in this function:

ForAll(
 Items;
 Patch(
 'Neuer SP 3400 ILLU Arbeitspakete Items';
 Defaults('Neuer SP 3400 ILLU Arbeitspakete Items');
 {
 Title: LineTitelTätigkeitBezug;
 Projekttyp: {Value: LineProjekttyp};
 Wunschressource: LineWunschressource;}))

Any idea what might be the cause? Thank you very much!

 

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

    Hi @Jasmin_Sch ,

    Do you mean you have three person combo box, but one of them cannot update person data successfully into SP list?

    I need to collect below information:

    1. Seems that you create a collection called “Items” with a column called “LineWunschressource”.

    So why do you create the variable “glbEmptyPerson” with 6 blank columns? How do you populate these columns? Can you show me the data inside “LineWunschressource” (and the formula how to create them))?

    v-albai-msft_0-1615456732921.png

    2. Is “Input Wunschressource” the name of your combo box? Or do you have another textinput control?

    v-albai-msft_1-1615456732923.png

    3. What’s the Items property of your combo box? Using the default formula---“Choices([@listname].Wunschressource)”?

    Also, I don’t know why you set “ThisItem.LineWunschressource” as the DefaulSelectedItem property of combo box. Can you explain more about this?

    Best Regards,

    Allen

  • Jasmin_Sch Profile Picture
    149 on at

    @v-albai-msft 

    Thank you for your reply! No I only have one combo box. With this combo box I want to search and select users.

    Randy Hayes helped me with this:

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Person-field-in-power-apps-via-combo-box/m-p/849573#M269996

     

    1. Actually I need 2 Informations: The User name and his or her department.

    User name: LineWunschressource;Departement: LineAbteilungWunschressource

    How I create my collection:

     

    NewForm('Form Neu');;
    ClearCollect(
     Items;
     {
     LineWunschressource:glbEmptyPerson;
     LineAbteilungWunschressource: "";})

     

      AD012A31-E9F9-49F6-BBD4-5D36E2CD4D74.jpeg83D8C58F-C184-495F-8214-899BAA0A1816.jpeg0C3DAC4F-5696-46DF-9D9F-4470F5CDDCFC.jpeg

    2.

    B0355C1A-CC1F-419E-9B66-AAA2D4E7F3DB.jpeg

    Thank you for your help!

  • v-albai-msft Profile Picture
    on at

    Hi @Jasmin_Sch ,

    In summary then, you are currently only having problems when submitting records.

    So do you mean only records without chosen person cannot be submitted?

    Can you show me the data of your Items collection(with its columns)? At least so far,I don't see any problems with your ForAll() function.

    Best regards,

    Allen

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard