<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Copy Data Pagination - Offset in Request Body in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/Copy-Data-Pagination-Offset-in-Request-Body/m-p/4417453#M7113</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the Copy Data activity to bring in a full data table into my bronze layer in Fabric. I am connecting to an API where the pagination method is using an offset in the&lt;STRONG&gt; request body&lt;/STRONG&gt;. I can get the total number of pages (and therefore the max value of the offset figure and more) in the table easily using a POST call and a define variable activity. Additionally, each POST call returns the 'pages remaining' in the return body. What I need to know is can we paginate through the records using the Copy Data activity in the &lt;STRONG&gt;request body&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Let me know if I need to provide any further information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lewis&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Feb 2025 09:30:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2025-02-19T09:30:58Z</dc:date>
    <item>
      <title>Copy Data Pagination - Offset in Request Body</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Copy-Data-Pagination-Offset-in-Request-Body/m-p/4417453#M7113</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the Copy Data activity to bring in a full data table into my bronze layer in Fabric. I am connecting to an API where the pagination method is using an offset in the&lt;STRONG&gt; request body&lt;/STRONG&gt;. I can get the total number of pages (and therefore the max value of the offset figure and more) in the table easily using a POST call and a define variable activity. Additionally, each POST call returns the 'pages remaining' in the return body. What I need to know is can we paginate through the records using the Copy Data activity in the &lt;STRONG&gt;request body&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Let me know if I need to provide any further information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lewis&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2025 09:30:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Copy-Data-Pagination-Offset-in-Request-Body/m-p/4417453#M7113</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-19T09:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Data Pagination - Offset in Request Body</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Copy-Data-Pagination-Offset-in-Request-Body/m-p/4419210#M7123</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the API uses the offset in the request body for paging, you can implement the paging logic in the following ways:&lt;BR /&gt;Use the &lt;STRONG&gt;Define Variable activity&lt;/STRONG&gt; to initialize the offset (e.g. offset = 0). Use the&lt;STRONG&gt; Until activity&lt;/STRONG&gt; to loop through calls to the API until all page data has been fetched.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more details, you can refer to below document:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-factory/set-variable-activity" target="_blank"&gt;Set Variable activity - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-factory/until-activity" target="_blank"&gt;Until activity - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Adamk Kong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 07:55:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Copy-Data-Pagination-Offset-in-Request-Body/m-p/4419210#M7123</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-20T07:55:18Z</dc:date>
    </item>
  </channel>
</rss>

