title: Azure Data Factory REST API to Service Now - Pagination Issue
body: <p>We are trying to use Azure Data Factory to pull data from ServiceNow using the REST API Connector. </p>
  
  <p>We have tried working with the specific ServiceNow connector in ADF but this does not perform adequately well for our purposes - we need to use actuals and display values and take frequent small loads, you can't filter display in place so it's too slow.</p>
  
  <p>In simple tests the REST API works fine, the challenge is specifically around pagination. After the initial GET request, the ServiceNow API returns relative links in the response header in the following format;</p>
  
  <pre><code>Link →&lt;url&gt;;rel="first",&lt;url&gt;;rel="next",&lt;url&gt;;rel="last"
  </code></pre>
  
  <p>The REST Resource dataset has settings for Pagination Rules and the documentation suggests that this can be handled - <a href="https://docs.microsoft.com/en-us/azure/data-factory/connector-rest#pagination-support" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/azure/data-factory/connector-rest#pagination-support</a></p>
  
  <blockquote>
    <p>This generic REST connector supports the following pagination patterns:</p>
    
    <p><em>Next request’s header = header value in current response headers</em></p>
  </blockquote>
  
  <p>We can't figure out what to put in the Pagination Rules Key/Value in order have it navigate to the rel="next" URL each time it receives a page of data.</p>
  
  <p>We have tried most of the options described in the documentation - something like this seems close:</p>
  
  <pre><code>            {"paginationRules": {
              "AbsoluteUrl": "Headers.['Link']"}
  </code></pre>
  
  <p>It seems like the Headers.['Link'] part is formed correctly but isn't specific enough.</p>
  
  <p>Has anyone advise what the setting should be to make this work?</p>