Hi Folks,
I am creating an app: "Seat availability at Office" where people can submit their request to come to office date wise as well location wise. Due to this pandemic, we are restricting that only 100 employees can come to office per day (again location-wise).
Backend: SP list
I am accessing the data in Gallery, and it looks like this:
Now requirement is to give a Delete record option, but it should be available for the respective user who has logged-in.
Like in this case, If I, Rachit Sinha accessing the app, so delete record option should be there against my record only, not with other user records.
Here employee name is Person type field in Sharepoint List.
Kindly suggest how to achieve this.
Many thanks!
Solved! Go to Solution.
Can you validate what value you are getting from both functions?
User().FullName
And Office365Users.MyProfile().DisplayName
Another option to use User().Email to get Office365Users
Hi @rsinha
We can hide the delete button. Set the visible property for the Delete button/Icon
User().FullName=BrowseGallery1.Selected.'Requested For'.DisplayName
'Requested For' - Person in SP list to whom it requested
Note: We can also use Office365Users.MyProfile().DisplayName to get user information
Thank you for the help, I am one step away for solution.
When I write following code for Visible property:
User().FullName = Gallery5.Selected.'Emplyee Name'.DisplayName
It doesn't show for me either.
And when I chose: Office365Users.MyProfile().DisplayName
It is visible for all user records.
Can you validate what value you are getting from both functions?
User().FullName
And Office365Users.MyProfile().DisplayName
Another option to use User().Email to get Office365Users
Hi @rsinha
Please validate what value you are getting for
Office365Users.MyProfile().UserPrincipalName
Ideally, we are trying to see how profile set it up and what field is best option to use
Thanks @rsinha for the confirmation.
Please do not forget to Accept it as a solution if works fine to help other users to find it useful.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.
User | Count |
---|---|
200 | |
96 | |
56 | |
51 | |
42 |
User | Count |
---|---|
263 | |
157 | |
83 | |
80 | |
57 |