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
Solved! Go to Solution.
You're very close! This will work to default select the current user:
First(Office365Users.SearchUserV2({searchTerm:User().Email}).value)
You said:
I think it needs to be something like this(?): Filter(Office365Users.SearchUser({searchTerm: Self.SearchText}), Mail = User().Email).
Have you tried this?
Hi @Anonymous
You might find that just setting the DefaultSelectedItems property to this will work.
[User().Email]
You're very close! This will work to default select the current user:
First(Office365Users.SearchUserV2({searchTerm:User().Email}).value)
Thanks. This works perfectly!
User | Count |
---|---|
257 | |
110 | |
90 | |
51 | |
44 |