Rest API post request file creation

Priya Jha 866 Reputation points

Hi All,

Currently i am leveraging Rest API as a source and blob as a sink in Azure Data Factory. The Rest API output is triggered on post request


Preview Data:


Now when i am importing the mappings and executing the job only 1st row is getting copied in the file.


How do i ensure that all the rows of the rest API get coped into the file.

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,762 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Nandan Hegde 29,906 Reputation points MVP

    Based on the output, it seems to be Object type.
    Not sure whether the approach is correct but you can map it to array based on something like below :

    and then use that to load into file

    @AnnuKumari-MSFT @ShaikMaheer-MSFT : any thoughts ? As this might be a haphazard way :(

    0 comments No comments

  2. AnnuKumari-MSFT 31,726 Reputation points Microsoft Employee

    Hi @Priya Jha ,

    Thankyou for using Microsoft Q&A platform and thanks for posting your question here.

    As per my understanding, you are trying to copy data from REST API to ADLS file. However, the results are not coming as expected. Kindly let me know if my understanding is incorrect.

    Since the source data is of hierarchical type. You need to use 'row[]' array as collection reference in copy activity , based on which iterations can be made and data can be dynamically fetched.

    For more details, kindly check the below resources:
    Hierarchical source to tabular sink
    How to load Tabular and Hierarchical JSON data from Rest API to SQL Table

    If this doesn't help in your case, you need to go for Mapping data flow where we have the capability to use Flatten transformation that can easily perform flatten over complex data.

    Hope this will help. Please let us know if any further queries.


    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you.
      Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators