Hi, first of I have looked though all the suggested posts and am still stuck so unsure what's going on with my app.
Trying to patch a sharepointlist and I am running into a network error during the patch.
Connected to the office365Users data connector and a sharepoint site/list
ComboBox1_1
Items
Filter(
Filter(
Office365Users.SearchUser({searchTerm:Trim(ComboBox1_1.SearchText)}),
AccountEnabled=true && CompanyName="DEP"
),
EndsWith(Mail,"@Mywork.co.uk")
)
OnChange
UpdateContext(
{
locSelectedUserEmail: Lower(First(ComboBox1_1.SelectedItems).Mail),
locSelectedUserDisplayName: First(ComboBox1_1.SelectedItems).DisplayName
}
)
PatchButton
OnSelect
Patch(
Eth,
Defaults(Eth),
{
CurrentUser: {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpanderUser",
Claims: "i:0#.f|membership|" & Lower(User().Email),
DisplayName: (User().FullName),
Email: (User().Email),
Department: "",
JobTitle: ".",
Picture: "."
}
},
{
SelectedUser: {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpanderUser",
Claims: "i:0#.f|membership|" & locSelectedUserEmail,
DisplayName: locSelectedUserDisplayName,
Email: locSelectedUserEmail,
Department: "",
JobTitle: ".",
Picture: "."
}
},
,
{
Title: TextInput1,
'Analysis': Q1_radio.Selected.Value,
'Investigations': Q2_radio.Selected.Value,
'Investigations2': Q3_radio.Selected.Value,
'Investigations3': Q4_radio.Selected.Value,
'Investigations4': Q5_radio.Selected.Value,
'Investigations5': Q6_radio.Selected.Value,
'Investigations6': Q7_radio.Selected.Value,
'Investigations7': Q10_radio_1.Selected.Value
}
)
I get the error "Network error when using Patch function: The requested operation is invalid."
If I select the "CurrentUser" section, the data type is showing as "Record" with the data "We didn't find any data."
If I select the "SelectedUser" section, the data type is showing as "Record" with the correct data.
If I select the final section, the data type is showing as "Record" with the correct radio button data.
Hopefully this is enough to troubleshoot it with.