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

How to work with Multiselect lookup column in Power app

I have a List A which has a column named System which is lookup (multi select) from master List B, Now I have created power app for List A and now trying to set default, update , items value for this column, how can I do that?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: How to work with Multiselect lookup column in Power app

Hi @vishalgoyal2472 ,

 

You can set below formula in the DefaultSelectedItems property of the combo box inside the data card:

{
        Id: LookUp('List B', Title = "test", ID), /* <- I assume that the Title is the source column and it is a Single line text type column in your 'List B'*/
        Value: "test"
    }

Note: Please add your 'List B' as a data source within your app firstly.

 

More details about setting a default value for a LookUp field in PowerApps, please check the following thread:

https://powerusers.microsoft.com/t5/General-Discussion/Save-Filtered-Lookup-Value-in-List-Custom-For...

Please also check and see if the following blog would help in your scenario:

https://powerapps.microsoft.com/en-us/blog/default-values-for-complex-sharepoint-types/

 

In this way, you only need to change the property of DefaultSelectedItems of the combo box, and you can leave the default settings for Items and Update property inside Form.

 

Regards,

Mona

 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Community Support Team
Community Support Team

Re: How to work with Multiselect lookup column in Power app

Hi @vishalgoyal2472 ,

 

You can set below formula in the DefaultSelectedItems property of the combo box inside the data card:

{
        Id: LookUp('List B', Title = "test", ID), /* <- I assume that the Title is the source column and it is a Single line text type column in your 'List B'*/
        Value: "test"
    }

Note: Please add your 'List B' as a data source within your app firstly.

 

More details about setting a default value for a LookUp field in PowerApps, please check the following thread:

https://powerusers.microsoft.com/t5/General-Discussion/Save-Filtered-Lookup-Value-in-List-Custom-For...

Please also check and see if the following blog would help in your scenario:

https://powerapps.microsoft.com/en-us/blog/default-values-for-complex-sharepoint-types/

 

In this way, you only need to change the property of DefaultSelectedItems of the combo box, and you can leave the default settings for Items and Update property inside Form.

 

Regards,

Mona

 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

vishalgoyal2472
Level: Powered On

Re: How to work with Multiselect lookup column in Power app

@v-monli-msft 
Will it work in case of multiselect ?

Community Support Team
Community Support Team

Re: How to work with Multiselect lookup column in Power app

Hi @vishalgoyal2472 ,

 

Yes, combo box control is designed for multiple select field.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
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 Kudoed Authors (Last 30 Days)
Users online (4,120)