I have REST API and need to import the data into a Azure SQL Server table.
I am using Data flow because requirement is to flatten the data.
Because the API produces lot of data I want import data in batches.
Pagination rules are different for Copy activity and Data flow, Copy activity QueryParamters with Range is what I need for Data flow.
I would like to implement below in dynamic way, can you please let me know, how I can get the pagination working.
abc?$expand=xx,yy,zz&$top=400&$skip=0
abc?$expand=xx,yy,zz&$top=400&$skip=400
Example API data: https://services.odata.org/TripPinRESTierService/People?$expand=Trips
In Mapping data flow Range pagination is not supported of Rest API.
range()
function and then the Filter condition withmod
to get numbers divisible by 400, ieYou will get the array with required numbers to be set for offset.
?$expand=Trips&$top=3&$skip=@{item()}
to give the pagination to URL.OUTPUT: