Hi, on my screen page i have create a form with 2 gallery for repeating table and store it to collection before final submit.. it is possible to patch this OnScreen (Form) using this formula? or any other way to combine together?
Because not error occur but this patch not save data to sharepoint list..only save the Form data
ForAll(
colApp,
If(
!IsBlank(invoiceno),
If(
CountRows(colApp) > 0,
Patch(
sinc_main_payment,
Defaults(sinc_main_payment),
{
Title: Form1.LastSubmit.ID,
app_no: Form1.LastSubmit.Title,
invoice_no: invoiceno,
invoice_date: DateValue(invoicedate),
invoice_amount: invoiceamount
}
)
)
)
);
ForAll(
colTeam,
If(
!IsBlank(staffname),
If(
CountRows(colTeam) > 0,
Patch(
sinc_main_team,
Defaults(sinc_main_team),
{
Title: Form1.LastSubmit.ID,
app_no: Form1.LastSubmit.Title,
name: staffname,
department: departmentname,
percentage: percent
}
)
)
)
);
Clear(colApp);
Clear(colTeam);