cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kumarraj88
Helper III
Helper III

how to send only one screen to Manager to provide comments based up on employee info submission

Hello Everyone,

 

I have a situtation which I am not able to crack it at all.

Scenario: Employee submit a request through PowerApps and the data will be saved to a SHarePoint list.

2. The manager of that EMployee should recieve an email to provide Comments and answer couple of more survey questions based up on the employee information submission (flow can send an email with the link, but link should enable powerApps for manager to submit all the answers). At the end of the day it should save content again to same list and appended to that particualar line item submitted by that Employee.

 

IS there a way that we can create 2 screen one for employee and other for Manager and Manager can only see manager Screen not the employee screen in POwerApps?

 

Please help me out. I am stuck.

5 REPLIES 5
v-yuxima-msft
Community Support
Community Support

Hi @kumarraj88 

 

Yes.Firstly you need to have two columns, one is for Manager Email, and the other is for Employee Email.

Then on your App Side, App.OnStart=if(User().Email in DataSource.ManagerEmail,Navigate(ManagerScreen,ScreenTransition.None),User().Email in DataSource.EmployeeEmail,Navigate(EmployeeScreen,ScreenTransition.None) )

 

Hope this could be helpful.

 

Best Regards.

Yumia

Thanks for the message. However how can we determine who is employee and who is manager based up on AD fields?

And moreover if a manager itselft wants to complete survey and he reports to another manager then how can we consider this manager? Either user or manager?

Or can do other way if possibel? Something like when a user submit the form then flow will automatically retrieve manager email and it will send notification to his/her manager and from there can manager provide his/her comments based up on the link added in the email?

At the end I want manager to be able to view the details submitted by his employee and then also submit comments in a form based only.

Please guide me.


@rajkumar88 wrote:
Thanks for the message. However how can we determine who is employee and who is manager based up on AD fields?

And moreover if a manager itselft wants to complete survey and he reports to another manager then how can we consider this manager? Either user or manager?

Or can do other way if possibel? Something like when a user submit the form then flow will automatically retrieve manager email and it will send notification to his/her manager and from there can manager provide his/her comments based up on the link added in the email?

At the end I want manager to be able to view the details submitted by his employee and then also submit comments in a form based only.

Please guide me.

Hi @rajkumar88 , Please look at the leave request sample app.  They do a similar thing which is "Login as an Employee / Login as Manager buttons".  You could present this first screen based on whether a user is in the managers table, then the user can decide which experience they want to see.

modalTablet

 

You can use the Office 365 Users connection to determine from AAD whether a user has direct reports.

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/connections/connection-office365-users

 

Office365Users.DirectReports("someUser@contoso.com")

 

You could count the rows of this method to see if they are a manager.

leave powerapp is bit compliocated for my scenario. What I am tryign to do as of now is to create addtional list with two columns (one for employee email and other for manager email). based up on these details user will have different screens for both to complete the survey with different questions. 

 

So next part is that when a employee competes his/her survey, there will be an email send to his/her manager. At this moment manager has get a screen with the details filled by the employee and additonal comments box to fil. can I include a powerapps form in the email link with the "excat screen" where manager has to navigate? 

Hi Yumina,

 

I tried your solution and it iis not working properly.

I created a list called "emailist" and created two columns called "employeeEmail" ManagerEmail . and then I have created an item with two different emails.

 

myonstartcodee is: If(User().Email in EmailList.EmployeeEmail,Navigate(EmpLandingScreen,ScreenTransition.None),User().Email in EmailList.ManagerEmail,Navigate(ManagerLandingscreen,ScreenTransition.None))

 

when I click on APP-rightcllick-runonstart    ----- it is navigating to emplandingscreen. Whenever I try with manager email address to access the form, it is taking me to emplandingscreen instead of "managerlandingscreen" .

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

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