Hi All,
I have a Combo box which gets values of a column in SharePoint. I am using a with function to get the values from SharePoint which is getting displayed properly. But the values in the Combo box are not sorted alphabetically.
The code in the item's property is:
With (
{
Items: Ungroup (
For All (
Customer Accounts,
'Account Manager'
),
"Value"
),
Distinct Email: Distinct(
Ungroup (
For All (
Customer Accounts,
'Account Manager'
),
"Value"
),
Email
)
},
Sort(
For All (
Distinct Email,
First (
Filter(
Items,
Email = Result
)
)
),
!IsBlank(DisplayName)
)
)
Any help on this would be greatly appreciated.