Dear All,
I created Leave Request on PowerApp for my company but when i submit the request by Login as an Employee, my Manager can receive my request via email but he didn't see my request on PowerApp(Login as a Manager) to approve. You can see steps as i capture bellow. Would you please give me your advise to resolve this case. Thank you so much
1.
2.
3.Manager get the notification mail of leave request but do not get the request on Power App
4.
Solved! Go to Solution.
What did you use for a back end data source? I think the sample is built to use Excel in your OneDrive, which your manager doesn't have access to. This video explains how to adapt the sample app to be a complete app
What did you use for a back end data source? I think the sample is built to use Excel in your OneDrive, which your manager doesn't have access to. This video explains how to adapt the sample app to be a complete app
Thank so much Pstork1,
After i shared the Excel file to manager, manager can get Leave request of staff.
i have more question: Can we adjust this template for 2 levels approve like: request --> Deparment manager approve--> General Director approve -->Done
Thanks.
Hi @NguyenHuu ,
Could you tell me:
1)what is your data source?
2)what are the changes that you made in the template leave request app?
3)please check whether you log in with the requester's approval's account?
Only the requester's approval could view the requests that the employees created.
You could check the employee's manager in azure admin center:
Please notice the GalleryRequests' Items in HomeScreen:
Sort(
If(_requestTypeFilter="All",
Filter(LeaveCollection, If(_managerView, Approver = _myProfile.UserPrincipalName, Requester = _myProfile.UserPrincipalName)),
Filter(LeaveCollection, Status=_requestTypeFilter && If(_managerView, Approver = _myProfile.UserPrincipalName, Requester = _myProfile.UserPrincipalName)) ), StartDate, Descending)
LeaveCollection will be filtered based on approver when you log in as a manager.
LeaveCollection will be filtered based on requester when you log in as an employee.
What's more, please notice:
LeaveCollection will be refreshed automatically when you restart the app.
So if you create some requests as an employee, then close the app. When you log in as a manager, you will not be able to view those requests as this collection has been refreshed.
Please notice the app's OnStart:
ClearCollect(LeaveCollection,
{Title: "Vacation", Detail: "Example vacation request", StartDate: Today(), EndDate: DateAdd(Today(), 6, Days), LeaveType: "Vacation", Requester: _myProfile.UserPrincipalName, Approver: _myProfile.UserPrincipalName,
Status: "Pending", LeaveID: _myProfile.UserPrincipalName&Text(Now(), "[$-en-US]mm-dd-yyyy-hh-mm-ss-fff")});
//it will clear the requests that were created before.
Best regards,
Dear @v-yutliu-msft ,
1)what is your data source?--> i created Leave Request on PowerApp, it auto created one excel file store in OneDrive
2)what are the changes that you made in the template leave request app?--> i didn't change anything, just ask that can we make two level approve( First approve by Deparment manager, second approve by Gerneral Director) on this template
3)please check whether you log in with the requester's approval's account?--> Yes login by account at "Submit to"
https://portal.azure.com --> i can't go to this link
For your code sharing i will test and feedback to you.
Thank so much.
Yes, it could be adjusted for two levels of approval. But since Power Apps is declarative rather than procedural it won't be easy. You'll need to add a second approval button and control which button is enabled/disabled based on the status of the request.
User | Count |
---|---|
253 | |
113 | |
92 | |
48 | |
38 |