I have found a workaround for this which may help others. It uses one of the headers to determine the end condition. I used Postman to view the headers of my API call on the first empty page after all records had been returned. I found a header called Content-Length which equals 2 when no data is being returned. The 2 represents the body '[]' in my case. I then set the pagination rules per the instructions in example 4.6 on this page: https://learn.microsoft.com/en-us/azure/data-factory/connector-rest?tabs=data-factory The settings I entered where:
Name (1st box): End Condition
Name (2nd box): headers.Content-Length
Value (1st box): Const
Value (2nd box): 2.
The json for it looks like this:
"paginationRules": {
"AbsoluteUrl.{Page}": "RANGE:1::1",
"EndCondition:headers.Content-Length": "Const:2"
}