cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Restrict own profile in lookup field

Hi,

I need to restrict a field in Powerapps so that the logged in user can't enter his own name as "Approver" from the Office365 user list.

 

This is from a sharepoint list 

 

Does anyone know how to do this? 

 

Thanks

Trond

10 REPLIES 10
Anonymous
Not applicable

Thanks you @yashag2255 ,

 

This solved the issue 🙂 However, there are more then 999 Office365 users so I had to tweek the solution by adding a searchbox to it:

Filter(Office365Users.SearchUser({searchTerm: TextInput1.Text}), Mail <> User().Email)

 

Thanks for your patience 🙂 I should have thought about the connection with Office365 users 🙂

 

Regards,

Trond

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (1,549)