Hi
I have created an Inventory application in Power Apps using SharePoint data source connecting to 2 lists: Notes and Notes List Log. I have successfully managed to Check items out of Notes and patched into Notes List log but at the moment can only ‘Check In’ what I checked out where as I want to Check in less than I originally checked out.
The function used to check out is:
With(
{
SharedItemToPatch: LookUp(
Notes,
ID = varRecord3.ItemBorrowed
)
},
Patch(
Notes,
SharedItemToPatch,
{TotalCheckedOut: SharedItemToPatch.TotalCheckedOut - varRecord3.TotalCheckedOut}
)
);
Patch(
'Note List log',
varRecord3,
{
Status: "Returned",
DateActualReturned: Today(),
TotalCheckedIn: varRecord3.TotalCheckedIn
}
);
Set(
varShowConfirm,
false
);
Can anyone help me please

Report
All responses (
Answers (