in microflow use xpath and in it there is custom setting, here you can specify amount as 5000, offset would be 0 if you want to get first 5000 records.
Hello,
As Abhishek mentioned, you can use custom in retrieve activity.
For more information on offset and limit, please refer below document.
Hope it helps you!!
Thanks