cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
grahampasmurf
Advocate III
Advocate III

People picker combo box error on submitform "Network error when using Patch function"

I followed some instructions to add a combo box to select a user and save it into a Person column named "Requester." Before this change, it was working, as a text box, saving the user from the User() function. I wanted the user to be able to change to select a different user and have it save in the Request column.

 

After the change, when I press the button to submit the form, it shows an error, "Network error when using Patch function" and debugging monitor shows further error, 

 

"HttpResponse": {
            "status"400,
            "message""The specified user i:0#.f|membership|john.doe@company.com could not be found.\r\nclientRequestId: ..."
 
Strangely, it works only when I select my own user, but not other users.
 
Here is the code.
 
in the Combo Box, which I named requesterDataCardValue4,
 
Items property: 

Office365Users.SearchUser({searchTerm: requesterDataCardValue4.SearchText})

 

DefaultSelectedItems property:

Parent.Default

 

On the Data Card, 

 

Default property: 

If(
Form1.Mode = New,
{
DisplayName: User().FullName,
Claims: "i:0#.f|membership|" & Lower(User().Email),
Department: "",
Email: User().Email,
JobTitle: "",
Picture: ""
},
ThisItem.Requester
)
 
 
Update property:
{
DisplayName: requesterDataCardValue4.Selected.DisplayName,
Claims: "i:0#.f|membership|" & Lower(requesterDataCardValue4.Selected.Mail),
Department: "",
Email: requesterDataCardValue4.Selected.Mail,
JobTitle: "",
Picture: ""
}
 
Any ideas?
 
Perhaps some permissions setting is preventing the Office365Users functions from looking up other profiles besides my own?
0 REPLIES 0

Helpful resources

Announcements
October Events

Mark Your Calendars

So many events that are happening this month - don't miss out!

Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Top Solution Authors
Top Kudoed Authors
Users online (1,927)