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 / Network Error when Pat...
Power Apps
Suggested Answer

Network Error when Patch Microsoft Office Users (Person) to Sharepoint List Column (Person Column)

(0) ShareShare
ReportReport
Posted on by 32

Hello! I have tried basically everything when trying to patch a person to my sharepoint list people column, by this I mean I am using the Microsoft Azure AD to patch persons to the person column on sharepoint, and consistently get a network error but I'm not sure where or why I get it. Heres all the code I've tried. I'm using a combobox to support my power app column. And I am writing this code on OnChange. I have tried so many versions at this point and I'm not sure where I'm going wrong. If anyone has any suggestions or if this is a microsoft power apps issue please let me know. Thank you!

TypeScript
Patch( 
    '2027AOCalendarCurrent', 
    ThisItem, 
    { 
        'AO Manager Test': { 
            '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser", 
            Claims: "i:0#.f|membership|" & Lower(ComboBox1.Selected.UserPrincipalName), 
            DisplayName: ComboBox1.Selected.DisplayName, 
            Email: ComboBox1.Selected.UserPrincipalName,   
            Department: Blank(), 
            JobTitle: Blank(), 
            Picture: Blank() 
        } 
    } 
);

Refresh('2027AOCalendarCurrent');


Patch(
    colCalendar,
    ThisItem,
    {
        'AO Manager Test': {
            Claims: "i:0#.f|membership|" & Lower(ComboBox1.Selected.UserPrincipalName),
            DisplayName: ComboBox1.Selected.DisplayName,
            Email: ComboBox1.Selected.UserPrincipalName,
            Department: Blank(),
            JobTitle: Blank(),
            Picture: Blank()
        }
    }
);

//NEW ATTEMPT

Patch( 
        '2027AOCalendarCurrent', 
        ThisItem, 
        { 
            'AO Manager Test': { 
                '
                Claims: "i:0#.f|membership|" & Lower(
                DisplayName: 
                Email: 
                Department: Blank(), 
                JobTitle: Blank(), 
                Picture: Blank() 
            } 
        } 
    ); 
//); 
   
Refresh('2027AOCalendarCurrent'); 
       
Patch( 
    colCalendar, 
    ThisItem, 
    { 
        'AO Manager Test': { 
            Claims: "i:0#.f|membership|" & Lower(
            DisplayName: 
            Email: 
            Department: Blank(), 
            JobTitle: Blank(), 
            Picture: Blank() 
         
        } 
    } 
); 

//NEW ATTEMPT
Patch('2027AOCalendarCurrent', First('2027AOCalendarCurrent'),  
    {'AO Manager Test': 
        { 
            Claims: "i:0#.f|membership|" & 
            Department:"",  
            DisplayName: 
            Email: 
        } 
    } 
   
); 
I have the same question (0)
  • Suggested answer
    SebS Profile Picture
    4,826 Super User 2026 Season 1 on at
    Depend if you Patch Single person or multi select

    Here is Single :
     
    IfError(
        Patch(
            '2027AOCalendarCurrent',
            LookUp(
                '2027AOCalendarCurrent',
                ID = ThisItem.ID
            ),
            {
                'AO Manager Test': {
                    '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
                    Claims: "i:0#.f|membership|" & Lower(ComboBox1.Selected.Mail),
                    DisplayName: ComboBox1.Selected.DisplayName,
                    Email: ComboBox1.Selected.Mail,
                    Department: "",
                    JobTitle: "",
                    Picture: ""
                }
            }
        ),
        Notify(
            "Person update failed: " & FirstError.Message,
            NotificationType.Error
        ),
        Notify(
            "AO Manager updated successfully.",
            NotificationType.Success
        )
    );
    
    Refresh('2027AOCalendarCurrent');

    And here is Multi Select 
     
    IfError(
        Patch(
            '2027AOCalendarCurrent',
            LookUp(
                '2027AOCalendarCurrent',
                ID = ThisItem.ID
            ),
            {
                'AO Manager Test': ForAll(
                    ComboBox1.SelectedItems,
                    {
                        '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
                        Claims: "i:0#.f|membership|" & Lower(Mail),
                        DisplayName: DisplayName,
                        Email: Mail,
                        Department: "",
                        JobTitle: "",
                        Picture: ""
                    }
                )
            }
        ),
        Notify(
            "Person update failed: " & FirstError.Message,
            NotificationType.Error
        )
    );
     
  • LE-19051254-0 Profile Picture
    32 on at
    Hi Seb, I got it to work! It seems like the patch error I was having was due to a sharepoint list column field I had toggled which was affecting the patch. I did use your code for readability + error checking. Thank you so much for all the help!
  • WarrenBelz Profile Picture
    155,838 Most Valuable Professional on at
    I will also add this blog of mine, which may be useful for the various options with Person field and Combo Boxes.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard