Hi all,
This is my scenario:
- I have one SPO list with over 10,000 records and a (Child) document library with a lookup column to the Parent list.
- I customized the child library with PowerApps simply because the lookup column won't work with more than 5000 records.
- I removed the lookup column in PowerApps and added the ComboBox. I used the below code on the Items attributes to get the data from the Parent list into my Combobox.
-
If(IsBlank(ComboBox2.SearchText), Filter('FileService_neats.Alf', StartsWith(FileName, "1")),Filter('FileService_neats.Alf', StartsWith(FileName, ComboBox2.SearchText)))
- On the ComboBox OnSelect attributes I created a collection to store data.
ClearCollect(LookUpFieldResponse, { Id: ComboBox2.Selected.ID, Value :ComboBox2.Selected.Title})
- And under Update attributes I have used below code to save the single records:
{
'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Id: ComboBox2.Selected.ID,
Value: ComboBox2.Selected.Title
}
- I have changed the Allowed the SelectMultiple for the ComboBox in PowerApps
- The Allow multiple values in SharePoint is turned off, if I turn it on I get below error message.

- I tried below codes to allow me to save multiple selection, but it didn't work.
ForAll(
ComboBox2.SelectedItems,
Patch(
'Harris Document Testing 5000 records',
Defaults('Harris Document Testing 5000 records'),
{
Title:ComboBox2.Selected.Title,
Lookup:{
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Id: ComboBox2.Selected.ID,
Value: ComboBox2.Selected.Name
}
}
)
)