Dear community,
I have been using PowerApps for about a week. I am using a timesheet app from April Dunnham that I have tweaked. 99% fine except for the add new record button.

I am trying to keep the selections from Area DropDown (ddArea) and Project ComboBox (cbProject), both lookup columns from sharepoint. Project filters dependent on what is selected from Area.
I have tried multiple suggestions and videos, but cannot seem to get it to add a new record and keep the old ddArea and cbproject selections intact. Currently the button is not working at all.
Plus button code:
Select(Parent);
Patch(
newTimeEntry,
ThisItem,
{
Employee: {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims: "i:0#.f|membership|" & currentUser.Email,
Department: "",
DisplayName: currentUser.FullName,
Email: currentUser.Email,
JobTitle: "",
Picture: ""
},
Mon: Value(tbMon.Text),
Tues: Value(tbTues.Text),
Weds: Value(tbWed.Text),
Thurs: Value(tbThurs.Text),
Fri: Value(tbFri.Text),
Comments: tbComments.Text,
Area: {
'@odata.type': "#Microsoft.Azure.Connectors.Sharepoint.SPListExpandedReference",
Id: LookUp(Projects, Area = ddArea.Selected.Area, ID),
Value: cbProject.Selected.Area
},
Project: {
'@odata.type': "#Microsoft.Azure.Connectors.Sharepoint.SPListExpandedReference",
Id: LookUp(Projects, Project = cbProject.Selected.Project, ID),
Value: cbProject.Selected.Project
}
}
);
Collect(
newTimeEntry,
{
Employee: {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims: "i:0#.f|membership|" & currentUser.Email,
Department: "",
DisplayName: currentUser.FullName,
Email: currentUser.Email,
JobTitle: "",
Picture: ""
},
Mon: 0,
Tues: 0,
Weds: 0,
Thurs: 0,
Fri: 0,
Sat: 0,
Sun: 0,
Comments: "",
Project: Blank()
})
I have also tried:
Area: {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Id: ddArea.Selected.ID,
Value: ddArea.Selected.Area
},
Project: {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Id: cbProject.Selected.ID,
Value: cbProject.Selected.Project
}
The latter creates an ObjNull, where record is expected. The former removes that error, but does nothing when clicked.
TimeEntries is where the records are kept:

Area (ddArea) advanced options:

Projects (cbProject) advanced options:

TimeEntries sharepoint list lookup to a Projects Sharepoint list here:

Any help would be greatly appreciated.