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

Multi Select not saving all items

Hey everyone,

I have a main form and a sub form. They are linked to each other. The main form has a TL_NO and this TL_NO is saved in the subform as a field automatically and that is how the link works. After submitting the subform, you are redirected to the subform and you have to select the form ID of the subform through a multi select field in the main form. The problem is, when I submit my main form, only the first value of the multi select is getting saved and not the others. So for instance a main form has 2 associated subform records, the submitform saves only the first subform record for the mainform. Ive set my drop down for the subform ID as follows:

 

Filter('Grease Trap', 'Trade_License-Number' = Value(DataCardValue46.Text)) where

'Grease Trap' is the data source of the sub form

 

The Update property for my combo box datacard in the main form is as follows:

 {
'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Id: LookUp('Grease Trap', GT_Reference_ID = DataCardValue60.Selected.GT_Reference_ID, ID),
Value: DataCardValue60.Selected.GT_Reference_ID
}

 

Please help me solve this.

Thank You.

2 REPLIES 2
Highlighted
Community Support
Community Support

Re: Multi Select not saving all items

Hi @sufiyan_akhtar ,

Do you mean that the multiple lookup field only save the first selection of the combo box?

The reason why you met this problem is that the formula that you use in the combo box's Update is used to update single lookup field. The LookUp function only returns the first record that meets the requirements.

I suggest you try this formula in Update:

Filter( Choices('Grease Trap'.lookupfieldname), Value in DataCardValue60.SelectedItems.GT_Reference_ID)

If you use " DataCardValue60.Selected", it will only return the combo box's first selection.

Only if you use "DataCardValue60.SelectedItems", it will return all the selections of the combo box.

 

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Helper I
Helper I

Re: Multi Select not saving all items

Hey,

Thanks for your reply.

I tried what you said and this is what im getting

sss (2).png

 

Helpful resources

Announcements
Ignite

Microsoft Ignite

This will be a conference that you do not want to miss!

secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (4,819)