最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How to configure a copy data activity REST connection pagination in Microsoft Fabric - Stack Overflow

programmeradmin5浏览0评论

I have a REST connection which I would like to load all the data. Now I'm unable to load all efficiently as I cant configure pagination properly.

In connection I use a parameter called offset, which is a value received in each message. In first message the value is 210187316 and in next message the value is 282787688 (seems to be some random number). example of the json below. In message there is also this hasMore attribute which tells if more data is available.

[
  {
    "results": [
      {    
    "hasMore": true,
    "offset": 210187316
  }
]

I have tried to use a parameter in connection like &offset={offset} and then defined this pagination so that it is a queryparameter {offset} and range 0 to infinity and offset 20 which is actually working except I receive thousands of duplicates and it takes forever to complete. Endcondition I have like $.offset and Const and false and it works.

How to configure this pagination so that it uses this offset value coming in each message for the next query to receive all data just once?

发布评论

评论列表(0)

  1. 暂无评论