cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
nana001
Advocate I
Advocate I

Sharepoint Flow - sort by two columns that cannot have together cannot have a compound index

I have a large document library. I am running a Flow with Get File (properties only). I need to order those by two columns. The first column is date, and the second is another column of datetime format. I have created an index on each of these columns which permits the Flow to run ok, unless I try to order by both columns at the same time, for example: 

Date desc, DateTimeSort desc

 

If I run that, it gets the list threshold error. I try to create a compound index in Sharepoint for both of these columns, however it does not let me select a secondary column when the first column is of type date. 

 

This is a significant issue as there are several files with the same date, that need to be then sorted by the second column. Is there anyway in flow to address this? Alternatively, is there anyway to create a compound index where both columns are of date or datetime format? 

1 REPLY 1
nana001
Advocate I
Advocate I

For anyone that finds this post and is wondering for a solution, the only one that I could find was creating a new column, indexing that column, then sorting your two existing columns into that 😞

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (40,711)