I am creating an application as shown below in the picture. I am trying to update 'Adjusted Hours' and Comments for multiple rows simultaneously so that the entire data is saved with 1 click. In this case, I am storing all the updated values in a collection and sending the collection values to SharePoint list (after clicking on tick mark). All the values are getting stored in the collection but only few values are getting stored in the SharePoint list. I have checked the code multiple times and tried various things but, still not luck. Can someone please explain me if I am missing anything.
I used to below code to save all the entries into the collection.
If(
ThisItem.Job in Collection1.Job1 And ThisItem.WeekEnding in Collection1.WeekEnding1,
Patch(
Collection1,
First(
Filter(
Collection1,
Job1 = ThisItem.Job,
WeekEnding1 = ThisItem.WeekEnding
)
),
{AdjustedHours : Value(TextInput5.Text)}
),
Collect(
Collection1,
{
Job1 : ThisItem.Job,
WeekEnding1 : ThisItem.WeekEnding,
AdjustedHours : Value(TextInput5.Text)
}
)
)
And, I used the below code to send the data to SharePoint list.
ForAll(
Collection1,
Patch(Hours, First(Filter(Hours, Job = Job1, WeekEnding = WeekEnding1)), {'Adjusted Estimate Hours': AdjustedHours, Comments: Comments1}));
Navigate(Screen2); Clear(Collection1)

Report
All responses (
Answers (