Hi @mmchx
#1. I assume the Current balance is a numeric field but I see a string with concat
//patch sp list of the user latest balance
Patch(CurrentUserBalance,LookUp(CurrentUserBalance,EmployeeName.Email = User().Email),{CurrentBalance:Concat(leaveTable,Days,";")});
It should be
//patch sp list of the user latest balance
Patch(CurrentUserBalance,LookUp(CurrentUserBalance,EmployeeName.Email = User().Email),{CurrentBalance:Number});
#2. Patch function for Draft from
//patch record to the draft form
Patch(LeaveRequest,
Defaults(LeaveRequest),
{
Title: TitleInput.Text,
Startdate: StartDate.SelectedDate,
StartdateType: Dropdown_StartDate,
Enddate:EndDate.SelectedDate,
EnddateType:Dropdown_EndDate,
LeaveType:Gallery_LeaveType.Selected.Title,
Totaldays:Totalleave
}
);
Thanks,
Stalin - Learn To Illuminate