I did two test Test 3 and Test 0044. Please look into that.
Update Property
I did two test Test 3 and Test 0044.
Test 3 - Does not show Inspector name in SharePoint(added image for reference).
Test 0044 - Does show Inspector name in SharePoint, also showing error in Power apps records(added image for reference).
What could be the error.
Update Property
@Cr1t I tried the person column menthod.
It gives me same error in the records(added image as reference) while i am testing the app.
@mtsts
Could you please provide me more info so i can help you better? Is it a Person column or have you used a combobox connected to office 365 connector?
If it is a person column please follow these steps:
Items property:
Choices([@'Walk Through Inspection Checklist 2024'].Inspector)
Default property:
{
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
DisplayName: User().FullName,
Claims: "i:0#.f|membership|" & Lower(User().Email),
Department: "",
Email: User().Email,
JobTitle: "",
Picture: ""
}
DefaultSelectedItems:
{
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
DisplayName:User().FullName,
Claims:"i:0#.f|membership|" & Lower(User().Email),
Department:"",
Email:User().Email,
JobTitle:"",
Picture:""
}
DisplayFields:
["DisplayName"]
If you are using office 365 connector for combobox then please follow the below steps:
Items property of combobox:
Office365Users.SearchUserV2(
{
searchTerm: yourcombobox.SearchText,
top: 50,
isSearchTermRequired: false
}
)
DisplayFields property:
["DisplayName","Mail"]
SearchFields property:
["DisplayName","Mail"]
Update property of the people picker card:
{
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims: "i:0#.f|membership|"&yourcombobox.Selected.Mail,
Department: "",
DisplayName: yourcombobox.Selected.DisplayName,
Email: yourcombobox.Selected.Mail,
JobTitle: "",
Picture: ""
}
Please let me know if this works for you.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I have create a sharepoint list with 2 columns Text and Submitted by,
Select the people picker datacard and set the Default and DefaultSelectedItems property as
{ '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser", DisplayName: User().FullName, Claims: "i:0#.f|membership|" & Lower(User().Email), Department: "", Email: User().Email, JobTitle: "", Picture: "" }
The person column should display the user name
No the right hand side click edit on fields .
Please set the primary text and search field to DisplayName.
Save and preview the app.
Please let me know if this works for you.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.