
I am building a Canvas App and having problem with a field defaultedSelectedItems from my combobox setting the cr5da_catalogueid to be a NULL value. All the other values for the record are setting correctly.
New selections do get the CatalogueID assigned.
If I deselect the old values from the combobox and reselect them , it does set the catalogueid on those records
Any help would be appreciated as I am still very new to Power Apps.
this is my Save process:
Remove('Prod.CatalogueBrands',
Filter(
'Prod.CatalogueBrands',
GalleryBrand.Selected.Id = cr5da_brandid
)
);
Refresh('Prod.CatalogueBrands');
ForAll(
ComboBox1.SelectedItems As rec,
Patch(
'Prod.CatalogueBrands',
Defaults('Prod.CatalogueBrands'),
{
cr5da_brandid: GalleryBrand.Selected.Id,
cr5da_companyid: drp_Main_Company.SelectedText.cr5da_externalprimarykey,
cr5da_catalogueid: rec.cr5da_externalprimarykey,
cr5da_createname: User().FullName,
cr5da_modifiedname: User().FullName
}
)
);