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

How to get the Assignee and department head in power apps

The SharePoint List (Approval Form) Column Assigned To is a lookup Column and It is linked to Department Name of another List  where Name of the Assignee and email are there. This department name head is linked  to another list (There is no lookup column only department names are same in both these list).  How to get the Assignee and department head in power apps when user select the Assigned to dropdown which is linked to lookup column ?

2 REPLIES 2
v-xiaochen-msft
Community Support
Community Support

Hi @Sajith ,

 

I did a test for you. 

1\ This is my list 'Approval Form'. 'Assigned To' is a lookup Column. Its related column is 'Assignee' column in LIST117.

v-xiaochen-msft_0-1620093554705.png

2\ This is my list LIST117. 'Assignee' and 'department name head' are Text columns. 

v-xiaochen-msft_1-1620093669044.png

 

3\ This is my list LIST118. 'department name head' and  'department name' are Text columns.

v-xiaochen-msft_2-1620093746994.png

 

4\ Add a dropdown control 'Dropdown1' and set its Items property to:

AddColumns('Approval Form',"Test",ThisRecord.'Assigned To'.Value)

v-xiaochen-msft_3-1620094447790.png

 

5\ Add a label control and set its Text property to:

Dropdown1.Selected.'Assigned To'.Value

 

Add a label control and set its Text property to:

LookUp(LIST117,Assignee=Dropdown1.Selected.'Assigned To'.Value).'department name head'

 

Add a label control and set its Text property to:

LookUp(LIST118,'department name head'=LookUp(LIST117,Assignee=Dropdown1.Selected.'Assigned To'.Value).'department name head').'department name'

 

6\ The result is as follows:

v-xiaochen-msft_4-1620094512524.png

 

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

 

 

Thanks a lot for your help. The control is not dropdown and it is data card (Combo box). 

 

2021-05-04_9-55-57.png2021-05-04_9-56-59.png

How we can insert these label values in the list  onSelect of the Submit Button. Because  SubmitForm(FormName) will submit only data card values.  

 

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

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