问题
Inside Azure data factory i make a call to microsoft graph through a REST copy activity utilizing rest to get an access token to the service. The Graph api returns max 200 results, and therefore i am interested in using the pagination rules that can be created in the source. In post man i can see that my response structure is
{
"@odata.context" : <some context>,
"@odata.nextLink" : <the link to next page>
"value" : [<the response data on current page>]
}
I have read in the documentation that i set the pagination rules by adding the key
AbsoluteUrl
and then the path to the next page given in the response as the value. How do i tell azure data factory how to find this?
回答1:
Since your repsonse is a json structure the value of
AbsoluteUrl
should be
$['@odata.nextLink']
来源:https://stackoverflow.com/questions/60263618/pagination-with-oauth-azure-data-factory