使用OAuth Azure Data Factory分页 [英] Pagination with oauth azure data factory

查看:77
本文介绍了使用OAuth Azure Data Factory分页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Azure数据工厂内部,我通过REST复制活动对Microsoft图进行了调用,利用其余活动来获取对该服务的访问令牌.Graph api返回最多200个结果,因此我对使用可在源代码中创建的分页规则感兴趣.在邮递员中,我可以看到我的回复结构是

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

,然后是响应中作为值给出的下一页的路径.我如何告诉azure数据工厂如何找到它?

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?

推荐答案

由于您的回复是json结构,因此

Since your repsonse is a json structure the value of

AbsoluteUrl

应该是

$['@odata.nextLink']

这篇关于使用OAuth Azure Data Factory分页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆