We'd like to verify if a username already exists in Office365, but when we do Office365Users.SearchUser({searchTerm:USERNAME}) and the user is not found, there's this big red pop up error at the top of the app. Is there another way to verify this without getting an error when the lookup returns no results?
Thank you !
Solved! Go to Solution.
Hello,
Do you see that error on a mobile device or in the browser? The folloiwng seems to work for me:
Label1.Text=IsBlank(First(Office365Users.SearchUser({searchTerm:"user_that_does_not_exist"})).DisplayName)
Hello,
Do you see that error on a mobile device or in the browser? The folloiwng seems to work for me:
Label1.Text=IsBlank(First(Office365Users.SearchUser({searchTerm:"user_that_does_not_exist"})).DisplayName)
Hi, thank you for helping!
The error pops up on browser. On your formula doesn't IsBlank return a boolean ?
You are correct. IsBlank returns a boolean.
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
User | Count |
---|---|
202 | |
180 | |
62 | |
32 | |
30 |
User | Count |
---|---|
324 | |
268 | |
104 | |
74 | |
56 |