Hello! I have this patch for now(ss1) where i verify if the records already exist in my SP list. I want to patch every checked checkbox in SP list new line every checked checkbox. I want to patch the id from every checkbox.
ss1:
ss2:
ss3:

Hello! I have this patch for now(ss1) where i verify if the records already exist in my SP list. I want to patch every checked checkbox in SP list new line every checked checkbox. I want to patch the id from every checkbox.
ss1:
ss2:
ss3:
I've done this for now but idk why the patch is not inserting nothing in SP list(the SP list in blank):
If(
CountRows(
Filter(
FormariPersonal,
MichelinId = Gallery3.Selected.'Michelin ID',
IDTipFormare = Gallery1.Selected.ID,
DenumireFormare = ComboBox1.Selected.Post
)
) > 0,
Notify(
"Persoana si formarea exista deja!",
NotificationType.Error,
2000
),
ClearCollect(
checkboxCollection,
FormariPersonal
);
ForAll(
Filter(
checkboxCollection,
Checkbox1.Checked = true
),
Patch(
FormariPersonal,
Defaults(FormariPersonal),
{
MichelinId: Gallery3.Selected.'Michelin ID',
IDTipFormare: Gallery1.Selected.ID,
Realizat: Now(),
DenumireFormare: ComboBox1.Selected.Post
}
)
);
Notify(
"Formare adaugata cu succes!",
NotificationType.Success,
2000
)
);
UpdateContext({resetCheckbox: true});
UpdateContext({resetCheckbox: false})