cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

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
v-yutliu-msft
Community Support
Community Support

Hi @Anonymous ,

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.
Anonymous
Not applicable

@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!

 

Anonymous
Not applicable

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

Anonymous
Not applicable

@RezaDorrani 

Can you help with this.

Anonymous
Not applicable

@AnonymousLet us know the solution if you find one.

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

@Anonymous 

 

I would have to try this App out and test it

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

 

Anonymous
Not applicable

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

Anonymous
Not applicable

@Pstork1Any help in this scenario.

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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

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 Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (2,262)