Set(
varRecord,
Self.LastSubmit
);
If(
IsError(
Patch(
'DataSource',
varRecord,
{
'Fiscal Year': combo_FY.Selected.'Fiscal Year',
'Period': combo_Period.Selected.Title,
'Business Unit': combo_BU.Selected.Title,
'Cost Center': Left(Concat(combo_CC.SelectedItems, Title & ", "), Len(Concat(combo_CC.SelectedItems, Title & ", ")) - 2),
'G/L Account': Left(Concat(cb_GL.SelectedItems, 'GL code' & ", "), Len(Concat(cb_GL.SelectedItems, 'GL code' & ", ")) - 2),
Flag: 1
}
)
);
Notify("Patch failed", NotificationType.Error),
Notify("Patch succeeded", NotificationType.Success)
);
Navigate(HomeScreen, ScreenTransition.None);