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 / Power Apps, Microsoft ...
Power Apps
Answered

Power Apps, Microsoft Lists People Column Error

(0) ShareShare
ReportReport
Posted on by 40
 
I am using s combobox to pull emails from microsoft 365 users to MS lists but I am receiving the following error, can anyone help?
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,079 Most Valuable Professional on at
    Can you please remember to post your code in Text - saves re-typing here. 
    There is nothing fundamentally wrong with the code assuming: -
    • Reviewer is a single selection Person column in the SharePoint List STEvE
    • The Items of ComboBox3 is based on Office365Users.SearchUser
    {
       Reviewer: 
       {
          Claims: "i:0#.f|membership|" & Lower(ComboBox3.Selected.Mail),
          Department: ComboBox3.Selected.Department,
          DisplayName: ComboBox3.Selected.DisplayName,
          Email: ComboBox3.Selected.Mail,
          JobTitle: ComboBox3.Selected.JobTitle,
          Picture: ""
       }
    }
    Please include the full Patch code in Text.
  • PowerAppsGuy Profile Picture
    40 on at
    The items for the combobox is:
     
    Office365Users.SearchUser({searchTerm: ComboBox3.SearchText, isSearchTermRequired: false})
     
    @WarrenBelz Here is the full code:
     
     
     
    ForAll(
        FilteredExpectations,
     
     Patch(
            STEvE,
            Defaults(STEvE),
            {
                Reviewer: {
                    '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
                    Claims: "i:0#.f|membership|" & ComboBox3.Selected.Mail,
                    Department: ComboBox3.Selected.Department,
                    DisplayName: ComboBox3.Selected.DisplayName,
                    Email: ComboBox3.Selected.Mail,
                    JobTitle: ComboBox3.Selected.JobTitle,
                    Picture: ""
                },
                Team: Dropdown1.Selected.Value,
                Comparison: Dropdown1_3.Selected.Value,
                SubTeam: Dropdown1_1.Selected.Value,
                RoleLevel: Dropdown1_2.Selected.Value,
                Title: TextInputCanvas1.Value,
               
     
                Expectation1: If(CountRows(Gallery4_1.AllItems) >= 1, Index(Gallery4_1.AllItems, 1).Dropdown2_1.Selected.Value, Blank()),
                Expectation2: If(CountRows(Gallery4_1.AllItems) >= 2, Index(Gallery4_1.AllItems, 2).Dropdown2_1.Selected.Value, Blank()),
                Expectation3: If(CountRows(Gallery4_1.AllItems) >= 3, Index(Gallery4_1.AllItems, 3).Dropdown2_1.Selected.Value, Blank()),
                Expectation4: If(CountRows(Gallery4_1.AllItems) >= 4, Index(Gallery4_1.AllItems, 4).Dropdown2_1.Selected.Value, Blank()),
                Expectation5: If(CountRows(Gallery4_1.AllItems) >= 5, Index(Gallery4_1.AllItems, 5).Dropdown2_1.Selected.Value, Blank()),
                Expectation6: If(CountRows(Gallery4_1.AllItems) >= 6, Index(Gallery4_1.AllItems, 6).Dropdown2_1.Selected.Value, Blank()),
                Expectation7: If(CountRows(Gallery4_1.AllItems) >= 7, Index(Gallery4_1.AllItems, 7).Dropdown2_1.Selected.Value, Blank()),
                Expectation8: If(CountRows(Gallery4_1.AllItems) >= 8, Index(Gallery4_1.AllItems, 8).Dropdown2_1.Selected.Value, Blank()),
                Expectation9: If(CountRows(Gallery4_1.AllItems) >= 9, Index(Gallery4_1.AllItems, 9).Dropdown2_1.Selected.Value, Blank()),
                Expectation10: If(CountRows(Gallery4_1.AllItems) >= 10, Index(Gallery4_1.AllItems, 10).Dropdown2_1.Selected.Value, Blank()),
                Expectation11: If(CountRows(Gallery4_1.AllItems) >= 11, Index(Gallery4_1.AllItems, 11).Dropdown2_1.Selected.Value, Blank()),
                Expectation12: If(CountRows(Gallery4_1.AllItems) >= 12, Index(Gallery4_1.AllItems, 12).Dropdown2_1.Selected.Value, Blank()),
                Expectation13: If(CountRows(Gallery4_1.AllItems) >= 13, Index(Gallery4_1.AllItems, 13).Dropdown2_1.Selected.Value, Blank()),
                Expectation14: If(CountRows(Gallery4_1.AllItems) >= 14, Index(Gallery4_1.AllItems, 14).Dropdown2_1.Selected.Value, Blank()),
                Expectation15: If(CountRows(Gallery4_1.AllItems) >= 15, Index(Gallery4_1.AllItems, 15).Dropdown2_1.Selected.Value, Blank()),
                Expectation16: If(CountRows(Gallery4_1.AllItems) >= 16, Index(Gallery4_1.AllItems, 16).Dropdown2_1.Selected.Value, Blank()),
                Expectation17: If(CountRows(Gallery4_1.AllItems) >= 17, Index(Gallery4_1.AllItems, 17).Dropdown2_1.Selected.Value, Blank()),
                Expectation18: If(CountRows(Gallery4_1.AllItems) >= 18, Index(Gallery4_1.AllItems, 18).Dropdown2_1.Selected.Value, Blank()),
                Expectation19: If(CountRows(Gallery4_1.AllItems) >= 19, Index(Gallery4_1.AllItems, 19).Dropdown2_1.Selected.Value, Blank()),
                Expectation20: If(CountRows(Gallery4_1.AllItems) >= 20, Index(Gallery4_1.AllItems, 20).Dropdown2_1.Selected.Value, Blank()),
                Expectation21: If(CountRows(Gallery4_1.AllItems) >= 21, Index(Gallery4_1.AllItems, 21).Dropdown2_1.Selected.Value, Blank()),
                Expectation22: If(CountRows(Gallery4_1.AllItems) >= 22, Index(Gallery4_1.AllItems, 22).Dropdown2_1.Selected.Value, Blank()),
                Expectation23: If(CountRows(Gallery4_1.AllItems) >= 23, Index(Gallery4_1.AllItems, 23).Dropdown2_1.Selected.Value, Blank()),
                Expectation24: If(CountRows(Gallery4_1.AllItems) >= 24, Index(Gallery4_1.AllItems, 24).Dropdown2_1.Selected.Value, Blank()),
                Expectation25: If(CountRows(Gallery4_1.AllItems) >= 25, Index(Gallery4_1.AllItems, 25).Dropdown2_1.Selected.Value, Blank()),
                Expectation26: If(CountRows(Gallery4_1.AllItems) >= 26, Index(Gallery4_1.AllItems, 26).Dropdown2_1.Selected.Value, Blank()),
                Expectation27: If(CountRows(Gallery4_1.AllItems) >= 27, Index(Gallery4_1.AllItems, 27).Dropdown2_1.Selected.Value, Blank()),
                Expectation28: If(CountRows(Gallery4_1.AllItems) >= 28, Index(Gallery4_1.AllItems, 28).Dropdown2_1.Selected.Value, Blank()),
                Expectation29: If(CountRows(Gallery4_1.AllItems) >= 29, Index(Gallery4_1.AllItems, 29).Dropdown2_1.Selected.Value, Blank()),
                Expectation30: If(CountRows(Gallery4_1.AllItems) >= 30, Index(Gallery4_1.AllItems, 30).Dropdown2_1.Selected.Value, Blank()),
                Expectation31: If(CountRows(Gallery4_1.AllItems) >= 31, Index(Gallery4_1.AllItems, 31).Dropdown2_1.Selected.Value, Blank())
            },
        {Status: "Draft"}
        )
       
    );

     
  • Suggested answer
    MS.Ragavendar Profile Picture
    5,011 Super User 2025 Season 2 on at
    'Reviewer': {
               Claims: Concatenate("i:0#.f|membership|",
                ComboBox3.Selected.Mail
                ),
                Department: "",
                DisplayName: User().FullName,
                Email: User().Email,
                JobTitle:"",
                Picture:""
                },
     
     
    🏷️ Please tag me @MS.Ragavendar if you still have any queries related to the solution or issue persists.
    Please click Accept as solution if my post helped you solve your issue and help others who will face the similar issue in future.
    ❤️ Please consider giving it a Like, If the approach was useful in other ways.
  • PowerAppsGuy Profile Picture
    40 on at
     
    When I run the code it shows the errors I mentioned but the code does seem fundamentally correct as @WarrenBelz has mentioned
  • stampcoin Profile Picture
    5,058 Super User 2025 Season 2 on at
    @PowerAppsGuy Hi There,
    The message ( error) seems tell that got empty record.
    Try the below code,  Or you hard coded  the email value to  Claims to see if that work or not.  Add a textlabel to show the selected email value from Combox3, and verify the value.
    If(
        !IsBlank(ComboBox3.Selected.Mail),
        ForAll(
            FilteredExpectations,
            Patch(
                STEvE,
                Defaults(STEvE),
                {
                    Reviewer: {
                        '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
                        Claims: "i:0#.f|membership|" & Lower(Trim(ComboBox3.Selected.Mail)),
                        Department: ComboBox3.Selected.Department,
                        DisplayName: ComboBox3.Selected.DisplayName,
                        Email: ComboBox3.Selected.Mail,
                        JobTitle: ComboBox3.Selected.JobTitle,
                        Picture: ""
                    },
                    //... [rest of your expectations]
                }
            )
        ),
        Notify("Please select a valid Reviewer email from the ComboBox.", NotificationType.Error)
    )
  • PowerAppsGuy Profile Picture
    40 on at
    this code doesn't work either the code doesn't pick up the combobox value for some reason @stampcoin. Can you help?
  • PowerAppsGuy Profile Picture
    40 on at
    @stampcoin Hello, 
     
    The code still doesn't appear to work, i think the Combobox value is not being pick up but I am not sure how to solve this issue. I do not have a premium Power Apps licence subscription do you know if this could be an issue at all?
     
    Please do let me know if you have any suggestions, I appreciate the help and support!
  • Verified answer
    MS.Ragavendar Profile Picture
    5,011 Super User 2025 Season 2 on at
     
    My Drop Down - backend is sharepoint 
     
     
     
    Patch 
     
    'Stocking Cordinater': DataCardValue22_2.Selected
     
     
    🏷️ Please tag me @MS.Ragavendar if you still have any queries related to the solution or issue persists.
    Please click Accept as solution if my post helped you solve your issue and help others who will face the similar issue in future.
    ❤️ Please consider giving it a Like, If the approach was useful in other ways.
  • WarrenBelz Profile Picture
    153,079 Most Valuable Professional on at
    The first fundamental issue I can see is that you are using ForAll() on FilteredExpectations (which I assume is a Collection) and then referring to Control values which I assume may be in a Gallery or on the screen- so you are not actually getting any values from FilteredExpectations.
    I really need to know the structure here - how does Gallery4_1 with all the expectations fit into this (there may be a lot of code you can save here) and where are all the other controls situated (in a gallery or on the screen with the same value for each record).
    Essentially, an explanation of how it all fits together would be useful for everyone.

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard