title: How to capture an output value in Copy Activity in Azure Data Factory
body: <p>I'm fetching data from an API source, which with each pagination is giving back some meta data needed to control the data flow. Most importantly it gives me the next page URL (captured in the &quot;pagination rules&quot;) and the [end_of_stream] value.</p>
  <p>However I am failing to understand <strong>how I can capture this output value and encapsulate the Copy Activity in a, for example, While-loop</strong> (While [end_of_stream] = 0, continue fetching data).</p>
  <p>Could someone please assist? Do I need to use the Web Activity instead, as this allows me to view the output of the activity and use those values in variables. The Copy Activity only seems to have the option of assigning values to columns in the sink. And the output of said activity is only showing meta-data not usable for me.</p>
  <p><a href="https://i.stack.imgur.com/xAgK9.png" rel="nofollow noreferrer">Data Factory Copy Activity</a></p>