Can we pass an array with ids as a query parameter in pagination?

Melody 0 Reputation points
2023-08-10T00:37:14.0366667+00:00

I am trying to make REST API request and for some reason, we need to pass some individual ids to the API to get the information from response.

I am thinking pagination rule, query parameter to pass the id which I could try to store in an array.

However, I could not find any mean to auto increase the index of the array to loop the request until the end of array.

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,624 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ShaikMaheer-MSFT 38,546 Reputation points Microsoft Employee Moderator
    2023-08-10T17:07:10.64+00:00

    Hi Melody,

    Thank you for posting query in Microsoft Q&A Platform.

    consider having your Ids in array variable and pass that array variable to ForEach activity. Inside foreach activity frame your request URL with each id and then use that request URL in for API call.

    I did little similar API calls using foreach loop in below video. Kindly refer that for better understanding.

    Copy data from REST API which sends response in Pages using Azure data factory

    Hope this helps. Please let me know if any further queries. Thank you.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.