使用 oauth 天蓝色数据工厂进行分页
Pagination with oauth azure data factory
在 Azure 数据工厂内,我通过 REST 副本 activity 调用 Microsoft Graph,利用 rest 获取服务的访问令牌。 Graph api returns 最多 200 个结果,因此我有兴趣使用可以在源代码中创建的分页规则。在 post man 中,我可以看到我的响应结构是
{
"@odata.context" : <some context>,
"@odata.nextLink" : <the link to next page>
"value" : [<the response data on current page>]
}
我在 documentation 中读到我通过添加键
来设置分页规则
AbsoluteUrl
然后是响应中给出的下一页的路径作为值。
我如何告诉 Azure 数据工厂如何找到它?
由于您的响应是 json 结构
的值
AbsoluteUrl
应该是
$['@odata.nextLink']
在 Azure 数据工厂内,我通过 REST 副本 activity 调用 Microsoft Graph,利用 rest 获取服务的访问令牌。 Graph api returns 最多 200 个结果,因此我有兴趣使用可以在源代码中创建的分页规则。在 post man 中,我可以看到我的响应结构是
{
"@odata.context" : <some context>,
"@odata.nextLink" : <the link to next page>
"value" : [<the response data on current page>]
}
我在 documentation 中读到我通过添加键
来设置分页规则AbsoluteUrl
然后是响应中给出的下一页的路径作为值。 我如何告诉 Azure 数据工厂如何找到它?
由于您的响应是 json 结构
的值AbsoluteUrl
应该是
$['@odata.nextLink']