web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Issue with April Dunna...
Power Apps
Unanswered

Issue with April Dunnam's timesheet app, clears out Bill To item from previous line when adding new item

(0) ShareShare
ReportReport
Posted on by

Love Aprils app, but have one issue where you click the + item to add new item to collection it blanks out previous item

seems fine when adding new item (Collection = newTimeEntry) , only with edit item (Collection = selectedTimeEntries)

 

i think anyone using this template will have this issue, hoping there is a simple fix

 

thank you in advance (added screenshot)

 

ONSELECT - New formONSELECT - Edit Form
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: ""
},
BillTo: {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Id: cbBillTo.Selected.ID,
Value: cbBillTo.Selected.Title
},
Mon: Value(tbMon.Text),
Tues: Value(tbTues.Text),
Weds: Value(tbWed.Text),
Thurs: Value(tbThurs.Text),
Fri: Value(tbFri.Text),
Sat: Value(tbSat.Text),
Sun: Value(tbSun.Text),
Comments: tbComments.Text
}
);
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: ""
},
BillTo:Blank(),
Mon: 0,
Tues: 0,
Weds: 0,
Thurs: 0,
Fri: 0,
Sat: 0,
Sun: 0,
Comments: ""
})
Select(Parent);
Patch(
selectedTimeEntries,
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: ""
},
BillTo: {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Id: cbBillTo.Selected.ID,
Value: cbBillTo.Selected.Title
},
Mon: Value(tbMon_1.Text),
Tues: Value(tbTues_1.Text),
Weds: Value(tbWed_1.Text),
Thurs: Value(tbThurs_1.Text),
Fri: Value(tbFri_1.Text),
Sat: Value(tbSat_1.Text),
Sun: Value(tbSun_1.Text),
Comments: tbComments_1.Text
}
);
Collect(
selectedTimeEntries,
{
Employee: {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims: "i:0#.f|membership|" & currentUser.Email,
Department: "",
DisplayName: currentUser.FullName,
Email: currentUser.Email,
JobTitle: "",
Picture: ""
},
BillTo:Blank(),
Mon: 0,
Tues: 0,
Weds: 0,
Thurs: 0,
Fri: 0,
Sat: 0,
Sun: 0,
Comments: ""
})

 

Add item error.png
Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @vandam2

    Two options

    • Use collect instead of patch to add a new record to your datasource: Collect(newTimeEntry, Defaults(newTimeEntry)) 
    • Replace ThisItem with Defaults(newTimeEntry) in your formula for adding a new item. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard