
ForAll(
Gallery3_1.AllItems,
If(
CountRows(
Filter(
'Test-Info',
'AD-Account' = txt_ADAccount.Text &&
'OU Path' = txt_OUPath.Text &&
Permission = txt_Permission.Text &&
'Primary Owner' = com_POwner.Selected
)
) = 0,
Patch(
'Test-Info',
Defaults('Test-Info'),
{
'AD-Account': txt_ADAccount.Text,
'OU Path': txt_OUPath.Text,
Permission: txt_Permission.Text,
'Primary Owner': com_POwner.Selected
}
)
)
);
Clear(col_OUItems);