web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Patch Person combo box
Power Apps
Unanswered

Patch Person combo box

(0) ShareShare
ReportReport
Posted on by 39

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.

 

Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Destek11 

    Watch Shane Young's video on how to patch complex column types https://www.youtube.com/watch?v=b4Fb57UsJLI 

  • TheRobRush Profile Picture
    11,128 Moderator on at

    I made a test just to check what you should have, in it I have a combobox with items set to a people column in my splist.

    Choices([@TestColumns].testMultiPeople)

    and a patch button

    Patch(TestColumns, {Title: "Test Record", testMultiPeople:DataCardValue2_1.SelectedItems})

     

    This patches Test Record into the list, and the testMultiPeople column contains all people selected form my combobox.

    TheRobRush_0-1678207927866.png

    hopefully this helps you get in right direction

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard