Forum Discussion

Prajwal's avatar
Prajwal
New Contributor II
2 years ago
Solved

Structuring the Data receiving from the Union snap

Hi all, Can anyone help me to figure out how can I format the data in more structural manner? Input Data: [   {     "account_name": "Prajwal",     "Name": "Jhonson Inc.",     "OwnerId...
  • Aleksandar_A's avatar
    2 years ago

    Hello Prajwal,

    Is the input always going to be the same (the number of documents)? If yes, then you can use a Gate Snap to gather all of the documents into a single array and then combine all of the elements into a single object.

     

    For more information, please refer to the attached pipeline.

    Let me know if this helps you.

    Regards,

    Aleksandar.

  • svatada's avatar
    2 years ago

    Prajwal Try using GroupByN snap to merge the incoming documents into one