So, I have a business requirement that only users who are related to a course should be able to view the course in our Course tool in Powerapps.
The best way would be to be able to filter the gallery as follows:
Filter('Course schedule', xxx_Courseschedule_SystemUser_SystemUser.'Primary email' = User().Email)
This gives errors that I am comparing a table with text.
Filter('Course schedule',Lower(User().Email) in Lower(xxx_Courseschedule_SystemUser_SystemUser.'Primary email'))
This gives a delegation warning and I don't get any results, although it's below max amount of records.
Same with using the distinct:
Filter('Course schedule',Lower(User().Email) in Lower(Distinct(xx_Courseschedule_SystemUser_SystemUser,'Primary email')))
Due to that many people can be logged to one course and that many people are logged to several courses, it's a many-to-many relationship. Using Dataverse and Office365Users. Is this a lost cause?
Could a collection help?