ForAll(
ComboBox1_21.SelectedItems As a,
If(
IsBlank(
LookUp(
collectICSGBUBrands,
ICSPeriod = Dropdown2_58.Selected.Name And
ICSYear = Dropdown2_57.Selected.Name And
Name = ComboBox1_45.Selected.Value And
Entitiesmapping = Value(a.EntityCode)
)
),
// If the condition is true, execute the Patch function to update the data source:
Patch(
ICSGBUBrands,
Defaults(ICSGBUBrands),
{
Name: Concatenate(ComboBox1_45.Selected.Value, "bhasker"),
Entitiesmapping: Value(a.EntityCode),
ICSYear: Dropdown2_57.Selected.Name,
ICSPeriod: Dropdown2_58.Selected.Name
}
),
// If the condition is false, skip this iteration and move to the next element:
Blank();
Collect(test123,a.EntityCode) // This line is giving error also tried Collect(test123,"Dummystring") , still same error
)
);