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

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

4 REPLIES 4
Highlighted
Community Support
Community Support

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

Highlighted

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

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

Highlighted
Community Support
Community Support

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

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

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
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (6,471)