Forum Discussion
SarahTurner
Jul 01, 2020Brass Contributor
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
- Ricardo VianaSteel ContributorThat looks fine, did you find out what was wrong?
- SarahTurnerBrass Contributor
- Ricardo VianaSteel ContributorThat was what I thought but just tested it myself and I have the same issue, although if I create a custom column it works
- Kevin_HoytIron ContributorYou 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/