cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SoB
Level: Powered On

Leave Request App - Manager not able to view my Requests

Leave Request App - Manager not able to view my Requests.

Manager gets the email but do not see my request in the app.

 

17 REPLIES 17
Community Support Team
Community Support Team

Re: Leave Request App - Manager not able to view my Requests

Hi @SoB ,

Did you make some changes about submitting request?

I've made a similar test but not met the same problem like your description.

In my test, the manger could see employee's request.

Here's my test:
1)formula about displaying request:

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)

2)formula about submitting request:

 Patch(LeaveCollection, If(_editingRequest, LookUp(LeaveCollection, LeaveID = GalleryRequests.Selected.LeaveID), Defaults(LeaveCollection)),
        {
            Title: TextInput1.Text,
            Detail: TextInput1_1.Text,
            StartDate: LeaveStartDatePicker.SelectedDate,
            EndDate: LeaveEndDatePicker.SelectedDate,
            LeaveType: _selectedLeaveType.type,
            Approver: _selectedApprover.UserPrincipalName,
            Status: "Pending",
            Requester: _myProfile.UserPrincipalName,
            LeaveID: If(_editingRequest, GalleryRequests.Selected.LeaveID, Text(Now(), DateTimeFormat.LongDateTime24) & _myProfile.UserPrincipalName)

Best regards,

Community Support Team _ Phoebe Liu

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
SoB
Level: Powered On

Re: Leave Request App - Manager not able to view my Requests

@v-yutliu-msft 

Thanks,

Both the codes mentioned by you are same for me but,

In my organization - we dont have 'manager' for Email-Outlook profiles, so, I have made these changes:

 

1. Set the manager here:

image.png

 

 

 

2. Set the 'Send Email' to this manager

image.png

 

I wan to keep the manager fixed for this project.

 

Note:

** If i keep MY email Id as 'Manager' then i am able to view my submitted leaves but when i give any other email ID/My Manager's email Id as 'Manager', then my Leave request is not Visible to Manager.

But i am able to receive the emails.

 

(mentioned email id is sample)

 

Thanks!

 

Highlighted
hh01
Level: Powered On

Re: Leave Request App - Manager not able to view my Requests

bump..

I have the same issue. If I send it to my self as a  manager I can see the request, but if I try to send it to other user they couldn't see any request  from the requester.

thank you

SoB
Level: Powered On

Re: Leave Request App - Manager not able to view my Requests

@RezaDorrani 

Can you help with this.

SoB
Level: Powered On

Re: Leave Request App - Manager not able to view my Requests

@hh01Let us know the solution if you find one.

Do you have 'Manager' set up in your outlook/Azure profile ?

Dual Super User
Dual Super User

Re: Leave Request App - Manager not able to view my Requests

@SoB 

 

I would have to try this App out and test it

I will see if I get some time later in the week

 

hh01
Level: Powered On

Re: Leave Request App - Manager not able to view my Requests

@SoB  yes, all set up. But still can't see any request if I send it to manager. 

SoB
Level: Powered On

Re: Leave Request App - Manager not able to view my Requests

@Pstork1Any help in this scenario.

Dual Super User
Dual Super User

Re: Leave Request App - Manager not able to view my Requests

Two things to check.

1) Since you are hard coding the manager, make sure the right manager is displayed in the collection after the request is made.  I found an issue with this out of the box, explained in #2

2) Make sure you've added th Office365 users and Office 365 connections to the app.  These are not generated by the project and will cause problems if they don't exist.  In terms of manager I found that the lack of an Office 365 connector was causing the request to default to the current user even when you manually changed the manager.

 

The manager settings are tracked in various places in the app.  Since you are hard coding it make sure that you make the changes in all the places needed.  I would start by looking at the requests collection after you create a request to make sure its assigned to the right manager.  That is the field used when displaying requests to the manager.  If its not set right they won't see it.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (4,476)