I started to have a strange problem. I have a "Save Draft" functionality in my app and it workded as expected until today.
If the Item is new, I patch the Item to SharePoint with the following code:
UpdateContext({
AccidentRecord: Patch(
AccidentReporting,
Defaults(AccidentReporting),
formaccidentinfo.Updates,
formpersonnellInfo.Updates,
formTypeOfIncident.Updates,
formIncident.Updates,
formCause.Updates,
formRCA.Updates,
formCorrectiveAction.Updates,
{
Status: {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Value: "Draft"
}
},
{EmployeeWOEmail: inputTempEmployee.Text}
)
})The patch works, but for some reason, the screen is now reset and all field are blank. Again, this worked as a charm 2 days ago.
Any help on this would be greatly appreciated!
Thank you,
Leon.