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 / Power Apps - User Comb...
Power Apps
Answered

Power Apps - User ComboBox (Single User)

(1) ShareShare
ReportReport
Posted on by 6

Hi all, I am hoping someone out there can help me with an issue I am having with a combobox (Select Multiple- False) which uses the NHS tenant directory. I am attempting to code an 'update' button, that updates a list item based on the selection of gallery items via checkbox and  the combobox and date picker. I had this working using a choice column for AssignedUser, but I cant for the life of me use the combobox with NHS Directory. 

  1. User selects gallery items, these are stored in a collection colSelectedItems
  2.  User selects a date from a datepicker, and the user. (These are set to default  today() date and user()
  3. User updates items, so they have the BookingDate and AssignedUser populated on the SharePoint List.

 Please note, this is code that worked on the principle of the drop down, with persons as choices rather than combobox of NHS users. The Function UpdateIf has some invalid arguments and invalid argument type. Expectign a Record value, but of a different schema. The AssignedUser Combobox is connected to Office655 users 

Office365Users.SearchUser({searchTerm: Self.SearchText})
ClearCollect(
    colIDs,
    ForAll(
        colSelectedItems,
        {ID: Value(ID)}
    )
);
UpdateIf(
    'LDLL V2',
    ID in colIDs.ID,
    {
        AssignedUser: CmbAssignedUser.Selected,
        BookingDate: DatePicker.SelectedDate
    }
);
Notify(
    "Updated selected items",
    NotificationType.Success,2000)
 
 
Categories:
I have the same question (0)
  • Verified answer
    SpongYe Profile Picture
    5,909 Super User 2026 Season 1 on at
    Hi,
     
    The error is because CmbAssignedUser.Selected is an Office365Users record, but a SharePoint Person column expects a SharePoint person record with fields like Claims, Email, DisplayName, Department, JobTitle, and Picture.
     
    UpdateIf/Patch can update records, but the replacement value must match the column schema. Microsoft’s UpdateIf docs describe it as modifying values in matching records, while the Office 365 Users connector returns user profile data, not SharePoint person-column records.
     
    AssignedUser would look like:
     
    AssignedUser: {
                        '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
                        Claims: "i:0#.f|membership|" & Lower(varUserEmail),
                        DisplayName: CmbAssignedUser.Selected.DisplayName,
                        Email: varUserEmail,
                        Department: Coalesce(CmbAssignedUser.Selected.Department, ""),
                        JobTitle: Coalesce(CmbAssignedUser.Selected.JobTitle, ""),
                        Picture: ""
                    }
     

    If you have any questions or feedback, please let me know. Have a great day! 😊

    -----------------------
    SpongYe Power Platform Enthusiast [LinkedIn] | [Youtube| [My blog]

     

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my blog [@SpongYe] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard