cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted

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
Highlighted
Community Support
Community Support

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

4 REPLIES 4
Highlighted
Community Support
Community Support

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

Highlighted

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

Highlighted

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.
Highlighted

If I select multiple value in Combo box , Lookup function will work?, eg.. I selected a, b , c , , Out put could be in text box (Angel, Bangle,Chamber )

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (9,991)