Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

DropDown menu not show sorted list of name and they are not updated

(0) ShareShare
ReportReport
Posted on by 87

Hi all,
I have create a Power Apps. 
This PowerApps App is linnked with a SharePoint List and it is very important so user can choose the right supplier (name of company supplier).

I have noted two issues:

1) Supplier name are not in alphabetically order in PowerApps DropDown menu

FedericoCoppola_0-1608030627590.png

FedericoCoppola_0-1608030560232.png

 

2) I have added a new Item (new supplier in SharePoint List) but I do not found it in PowerApps DropDown Menu.

New Supplier is in SharePoint List and SharePoint List is sorted alphabetically.

 

How can I solve it?
Thanks
Federico

  • FedericoCoppola Profile Picture
    FedericoCoppola 87 on at
    Re: DropDown menu not show sorted list of name and they are not updated

    Dear @FrostedFlake ,
    Thanks so much!

    I do not know why, but using

    Sort(yourSharePointList; columnToSortBy; Ascending)

    I don't have issue about "OnSelect" property of my confirm button!

     

    I have just a doubt: Is it normal that I have to "refresh manually" data from SharePoint List?

     

    Thanks

  • FrostedFlake Profile Picture
    FrostedFlake 138 on at
    Re: DropDown menu not show sorted list of name and they are not updated

    Hi @FedericoCoppola ,

    nothing easier than that! Try this in the "Items" property of your DropDown:

    Sort(yourSharePointList; columnToSortBy; Ascending)

    For example:

    Sort(Suppliers; supplierName; Ascending)

    This will list all suppliers by the first letter of their name. Let me know if it worked for you!

  • FedericoCoppola Profile Picture
    FedericoCoppola 87 on at
    Re: DropDown menu not show sorted list of name and they are not updated

    Hi @poweractivate 
    Thanks so much for your reply

     

    I have tried the first suggestion using

    SortByColumns(NameOfSharePointList, "FieldNameToSortBy").NameOfColumnToDisplayInDropDown

    and it works fine!

    After that I have tried to force "update data from source list" and it works too.

     

    After SortByColumns I have a trouble with a button that update data in a SharePoint List. 🤔

    I have a confirm button that is linked to a Power Automate Flow that get the ID of the supplier and not the name!  ☹️

    FedericoCoppola_1-1608041395967.png

     

     

     

    This is the update block of my Power Automate Flow:

    FedericoCoppola_0-1608040898189.png

     

    I need to continue to keep the ID in OnSelect property of button.

    How can I solve it?

     

    Thanks
    Federico

  • poweractivate Profile Picture
    poweractivate 11,078 on at
    Re: DropDown menu not show sorted list of name and they are not updated

    @FedericoCoppola 

     

    1) Try this:

    In items Property,

     

    Instead of just 

     

    NameOfSharePointList

     

    Try instead this:

     

    SortByColumns(NameOfSharePointList, "FieldNameToSortBy").NameOfColumnToDisplayInDropDown

     

    2) Try one of two things:

     

        2a) Try to go to Data Sources in the App and click the Refresh button on SharePoint List data source.

     

       qkrefreshdatasource3927850.png

     

     

     

        2b) To do this from inside the App itself instead during runtime, use the Refresh function from somewhere, such as OnVisible of the first screen of the App. Then to test, switch back and forth between another screen and that screen. However note that for very substantial changes to the SharePoint List like adding columns, only 2a specifically might work for this.

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,343

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard