Forum Discussion

SarahTurner's avatar
SarahTurner
Brass Contributor
Jul 01, 2020

ODATA order by filename in Get Files ( Properties only)

Hi, how can I order by the filename - what is the syntax for this?  I have tried just putting

Name asc 

but the flow fails.  Please can someone help? Thanks

 

4 Replies

  • Kevin_Hoyt's avatar
    Kevin_Hoyt
    Iron Contributor
    You can use FileLeafRef to sort by the name of the document. See this blog post for details.
    https://tomriha.com/power-automate-to-filter-file-in-sharepoint-by-file-name/
      • Ricardo Viana's avatar
        Ricardo Viana
        Iron Contributor
        That was what I thought but just tested it myself and I have the same issue, although if I create a custom column it works

Resources