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 / Error Patch - multi us...
Power Apps
Answered

Error Patch - multi users in sharepoint

(1) ShareShare
ReportReport
Posted on by 8
Hello,

We have an issue "Network error when using Patch function: the requested operation is invalid"

*/Intervenants:

                ForAll(

                    DataCardValue39_4.SelectedItems,

                    {

                        '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",

                        Claims: "i:0#.f|membership|" & UserPrincipalName,

                        Department: "",

                        DisplayName: DisplayName,

                        Email: Mail,

                        JobTitle: "",

                        Picture: ""

                    }

                )*/

Thank you for you help.

 

 

Categories:
I have the same question (0)
  • Suggested answer
    Vish WR Profile Picture
    2,548 on at
     

    This error with the multi-user (Person) field in SharePoint via Patch() usually means the value you’re sending is not in the exact format SharePoint expects.

    You can try this 

    Patch(
        YourList,
        Defaults(YourList),
        {
            Intervenants:
            ForAll(
                DataCardValue39_4.SelectedItems,
                {
                    '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
                    Claims: "i:0#.f|membership|" & Email,
                    DisplayName: DisplayName,
                    Email: Email,
                    Department: "",
                    JobTitle: "",
                    Picture: ""
                }
            )
        }
    )
     
    Vishnu WR
     
    Please  Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like 
  • Suggested answer
    Kalathiya Profile Picture
    2,001 Super User 2026 Season 1 on at
     
    Assuming your ComboBox is bound to users from the Office 365 Users connector.
     
    Please try below 2 approaches: 
     
    #1. Approach 1
    - Create the collection before patching the code and use this collection in Patch function:
     
    ClearCollect(c_Users, ForAll(DataCardValue39_4.SelectedItems, 
                        {
            '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
            Claims: "i:0#.f|membership|" & ThisRecord.Mail,
            Department: "",
            DisplayName: ThisRecord.DisplayName,
            Email: ThisRecord.Mail,
            JobTitle: "",
            Picture: ""
        }));
    Then after on Patch code will be like this: 
    Intervenants: c_Users
    #2. Approach 2
    Directly use in patch code and try it. 
    Intervenants:ForAll(DataCardValue39_4.SelectedItems, 
                        {
            '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
            Claims: "i:0#.f|membership|" & ThisRecord.Mail,
            Department: "",
            DisplayName: ThisRecord.DisplayName,
            Email: ThisRecord.Mail,
            JobTitle: "",
            Picture: ""
            })
    If this response resolves your issue, please mark it as the Verified Answer so it can help other community members as well.
    ---------------------------------------------------------------------------------

    📩 Need more help? Just mention @Kalathiya and I’ll be happy to assist.

    ✔️ If this answer helped you, please tick “Does this answer your question?” so it can be marked as the Verified Answer.

    💛 A Like always motivates me to keep contributing!

     
     
     
     
  • MS-06050807-0 Profile Picture
    8 on at
    Thank you for you help @Vish WR and @Kalathiya
  • Suggested answer
    Thomas.m1988 Profile Picture
    181 on at
    were you able to solved the issue ?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,041

#2
11manish Profile Picture

11manish 676

#3
Valantis Profile Picture

Valantis 655

Last 30 days Overall leaderboard