I am developing an app in which employees can enter their hours for the past month. The photo that has been added is the page where an overview can be seen for the employee. At the moment everyone sees this overview (and therefore everyone each other's hours). I only want to make this page visible to the person who is logged in. This way everyone only sees their own hours. How do I do this?
The thing that is crossed out in blue is the name of the app.
I would like to hear from you!
I would create a variable, varCurrentUser and set this to the current User
I would then use this to filter the records in the gallery. A full explanation is available here
Sorry because of missing one of the single quotes
'Created By' = MyLoggedUser
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
While I agree with the technique above, we should never EVER use displayname for this, as this can result in data breaches when people have the same name as it will show records for all people with the name 'Firstname LastName', however we can use email address as more than one person cannot have the same email address within Microsoft Exchange, so they will always be unique.
User().Email should be used so that unique values are obtained.
Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you!
Check out new user group experience and if you are a leader please create your group
Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!
Participate in the Power Virtual Agents Community Challenge
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.