title: How to use the REST API for Activity Runs in Azure Data Factory?
body: <p>I am trying to get all the information about the activities in a pipeline and log it into some SQL Database.</p>
  <p>I did some R&amp;D and I found that I can do it with RESP API.</p>
  <p>I read and performed it with the help of below link:-</p>
  <p><a href="https://docs.microsoft.com/en-us/rest/api/datafactory/activity-runs/query-by-pipeline-run#runqueryfilter" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/rest/api/datafactory/activity-runs/query-by-pipeline-run#runqueryfilter</a></p>
  <p>But the problem is, I am passing the correct <strong>subscription Id</strong>, <strong>run Id</strong>, and the <strong>lastUpdatedAfter</strong>, <strong>lastUpdatedBefore</strong>. But I am getting a empty array in the response of the <code>REST API POST</code> method.</p>
  <p>Also tell me, If I am missing something in <strong>REQUEST BODY</strong>.</p>
  <p><strong>Here are the ScreenShots</strong>:-</p>
  <p><a href="https://i.stack.imgur.com/XGdE5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XGdE5.png" alt="enter image description here" /></a></p>
  <p><strong>URL for the API</strong></p>
  <p><strong>Request Body for API</strong>
  <a href="https://i.stack.imgur.com/BJBkc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BJBkc.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/DqpQV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DqpQV.png" alt="enter image description here" /></a></p>