Hi Everyone
I have a person type column in my SharePoint List and combo box in PowerApps for a people picker.
For this single selection Combobox I have following property
For the single selection people column, Update should be:
{Claims: ComboBox.Selected.Mail}
DSI: First(Office365Users.SearchUser({searchTerm: ThisItem.ColumnName.Email}))
Office365Users.SearchUser({searchTerm: ComboBox1_3.SearchText})
First(Office365Users.SearchUser({searchTerm: ThisItem.Primary_risk_owner.Email}))
{Claims: ComboBox1_3.Selected.Mail}
The issue is with the default value, Not Matter what I set in the default value, there is always a preselected one in the combo box.
I have set the default as Blank (), then also the first Item get preselected.
Could anyone please help me to fix this issue?
@Danny_Dicaprio - the Default property of the ComboBox control is deprecated.
In the Update property of the DataCard, use:
{
DisplayName: ComboBox1_3.Selected.DisplayName,
Claims: "i:0#.f|membership|" & Lower(ComboBox1_3.Selected.Mail),
Department: "",
Email: Lower(ComboBox1_3.Selected.Mail),
JobTitle: "",
Picture: ""
}
On the DefaultSelectedItems property of the ComboBox, remove "Parent.Default" and instead use:
If(
!IsBlank(ThisItem.Primary_risk_owner.Email),
First(Office365Users.SearchUser({searchTerm: ThisItem.Primary_risk_owner.Email}))
)
Do not make any other modifications to the DataCard.
WarrenBelz
146,660
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,999
Most Valuable Professional