Pagination with oauth azure data factory

僤鯓⒐⒋嵵緔 提交于 2021-01-05 07:26:25

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!