I have an issue where I have an activity table , which now has 10,000 records .
At present I am creating multiple collections based on an AccountID code.
So at present I can pull in on average 40 rows of activity per ID.
What I would like to do is have an additional sort by date/time field , so if the activity get's too large in the future , this will ensure that the latest activity would be added to the collections.
my date/time field is named field_5
This is my current working code , is there a way to add the sort by field_5 DESC to this
Concurrent(
ClearCollect(
activity_0,
Filter(
Activity_List,
AccountID >= 0 && AccountID < 50
)),
ClearCollect(
activity_1,
Filter(
Activity_List,
AccountID >= 50 && AccountID < 100
)),
ClearCollect(
activity_2,
Filter(
Activity_List,
AccountID >= 100 && AccountID < 150
)),
ClearCollect(
activity_3,
Filter(
Activity_List,
AccountID >= 150 && AccountID < 200
)),
ClearCollect(
activity_4,
Filter(
Activity_List,
AccountID >= 200 && AccountID < 250
)),
ClearCollect(
activity_5,
Filter(
Activity_List,
AccountID >= 250 && AccountID < 300
)),
ClearCollect(
activity_6,
Filter(
Activity_List,
AccountID >= 300 && AccountID < 350
)));
ClearCollect(activity,activity_0,activity_1,activity_2,activity_3,activity_4,activity_5,activity_6);
Clear(activity_0);Clear(activity_1);Clear(activity_2);Clear(activity_3);Clear(activity_4);Clear(activity_5);Clear(activity_6);