Hi all,
I have another question. On the home screen of one of my apps the users search for and select themselves so they can record data about what work they're doing throughout the day.
The combo box is a standalone input field, so not part of a form. The items property is: Filter(Office365Users.SearchUser({searchTerm: Self.SearchText}), Department = "Corporate Resources, IBC").
I cannot figure out what piece of code to put in the DefaultSelectedItems property of the combo box.
I think it needs to be something like this(?): Filter(Office365Users.SearchUser({searchTerm: Self.SearchText}), Mail = User().Email).
The screen looks like this:
I have seen lots of posts about doing this using sharepoint as a datasource, but not the O365 Users connector.
Thanks,
Freddie
Thanks. This works perfectly!
You're very close! This will work to default select the current user:
First(Office365Users.SearchUserV2({searchTerm:User().Email}).value)
Hi @Anonymous
You might find that just setting the DefaultSelectedItems property to this will work.
[User().Email]
You said:
I think it needs to be something like this(?): Filter(Office365Users.SearchUser({searchTerm: Self.SearchText}), Mail = User().Email).
Have you tried this?
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
Super User 2025 Season 2
mmbr1606
275
Super User 2025 Season 2