Hi
I am patching a Sharepoint list with records that have changed and then performing a ClearCollect to get the whole list back. I have sometimes had an issue where it has patched to Sharepoint but is not in my Collection.
Is it performing the ClearCollect before Sharepoint has finished Patching?
// Patch Planned lines to SharePoint
ForAll (
Filter(
colPlannedLines,
State = "Updated" || State = "New"
),
Patch(
Planned,
Defaults(Planned),
{
MonthCommencing: locMonthCommencing,
Person: {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims: Person.Claims,
Department: "",
DisplayName: Person.DisplayName,
Email: Person.Email,
JobTitle: "",
Picture: ""
},
Project: {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Id: Project.Id,
Value: Project.Value
},
PlannedDays: PlannedDays
}
)
);
//Get current months Planned Hours
ClearCollect(
colPlannedLines,
Filter(
Planned,
(MonthCommencing = locMonthCommencing)
),
"ID",
"MonthCommencing",
"Person",
"Project",
"PlannedDays"
);