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

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 is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (32,523)