Fetching XML return max 5000 records
One way you can do adding TurnOffFetchThrottling DWORD key into HKLM\Software\Microsoft\MSCRM with Setting value 1. 0 – default and MaxRowsPerPage(others key that CRM concerns) is respected Non-zero – no limit to the number of rows returned. MaxRowsPerPage not respected.