I'm encountering an error when attempting to update a SharePoint list item using the Patch function within a facilities group dashboard. The specific error message is "Requested Operation is Invalid."
Steps to Reproduce:
Access the facilities group dashboard.
Click on the "AssignedTo" dropdown menu.
Select a user from the list.
Click the "Submit Assign" button.
Expected Behavior:
The "AssignedTo" field in the selected SharePoint list item should be updated with the chosen user.
Actual Behavior:
The "Requested Operation is Invalid" error message appears.
Troubleshooting Performed:
I have verified that the objects being referenced in the Patch function exist.
I'm unsure whether to focus troubleshooting on .email or /claims references.
Additional Information:
Request:
I would appreciate assistance in identifying the root cause of this error and resolving the Patch function issue. Please advise on the following:
Potential causes for the "Requested Operation is Invalid" error in this context.
Specific troubleshooting steps to take, considering both .email and .claims references.
Whether the provided information is sufficient or if additional details are required.
Thank you for your time and support!
//Patch(
'Facilities & Security Support Desk',
SelectedRecord,
{
AssignedTo: {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims: "i:0#.f|membership|" & Form1.Updates.AssignedTo.Claims,
DisplayName:Form1.Updates.AssignedTo.DisplayName,
Email: Form1.Updates.AssignedTo.Email,
Department: "",
JobTitle: "",
Picture: ""
},
'Ticket Owner':{
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims: "i:0#.f|membership|" & Form1.Updates.'Ticket Owner'.Email,
DisplayName: Form1.Updates.'Ticket Owner'.DisplayName,
Email: Form1.Updates.'Ticket Owner'.Email,
Department: "",
JobTitle: "",
Picture: ""
},
Priority: Form1.Updates.Priority,
'Subject Details': Form1.Updates.'Subject Details',
Status:{Value:"Assigned"}
}
);
Set(AssignedEmail, SelectedRecord.AssignedTo.Email);
Taking over another project from a staff member who left,
Thanks