how to flatten an array upto a given depth in appian

I am having the below array configuration as output, but I only want 4 array of List Of Document with each having 50 items.

  Discussion posts and replies are publicly visible