cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
therush321
Helper I
Helper I

How filter office365users.searchuser for a select few only

Hi

I am trying to filter my people picker list to a select few emails to be used but I am not having any luck.

 

I have installed the MS O365 connector and tried to filter down to a few emails but it does not work for more than 1 email with the code below:

 

items: Filter(Office365Users.SearchUser({searchTerm: DataCardValue24.SearchText});
"rjam@abc.co.za" & "bjam@abc.co.za" in Mail)

 

6 REPLIES 6
mdevaney
Super User III
Super User III

@therush321 
Use this code in the Items property of your Combobox.

Filter(Office365Users.SearchUserV2({searchTerm: Self.SearchText});

 

Then type the desired email in the text input area of the Combobox.  Users with that search text in their email should appear as an option.

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

@mdevaney Thank you very much but I am getting back an error on the items code:

therush321_0-1603284394160.png

 

 

@therush321 
Please share a screenshot of the error message you are recieving.

@mdevaney I have updated the image above to display the error.

@therush321 

Oh, now I can see my code error.  Please try this instead without any FILTER.

Office365Users.SearchUserV2({searchTerm: Self.SearchText})

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

 Thank you very much but where would I add my emails that can only be searched and used?

 

@mdevaney  Any thoughts on this?

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (3,022)