Reputation: 61
How can be loaded all pipeline runs from Azure Data Factory using .NET SDK in one HTTP query to the factory?
I have tried the QueryByFactoryWithHttpMessagesAsync
method but it returns only 100 last runs.
var filter = new RunFilterParameters(DateTime.MinValue, DateTime.Now);
return client.PipelineRuns.QueryByFactoryWithHttpMessagesAsync(
dataFactoryParameters.ResourceGroup,
dataFactoryParameters.DataFactoryName,
filter).Result.Body.Value;
Upvotes: 0
Views: 710
Reputation: 7738
I don't have a code sample, but the QueryByFactoryAsync method returns a PipelineRunsQueryResponse instance, which includes a ContinuationToken property. You should be able to use that to get the next group of values.
Upvotes: 1