On-prem Files Import Formatting

Hi all,

I am seeing that the payload I am creating to transfer via an On-prem Files connection is taking my payload and adding it into an array. I believe this is likely due to the “How many files would you like to generate?“ setting.

The downstream system I am working with cannot accept a JSON file where the object is an array entry.

Has anyone encountered and resolved this issue? All help is greatly appreciated!

You'd need something like this:

{
  {{#each batch_of_records}}
    {{#each record}}{{#unless @first}},
    {{/unless}}"{{@key}}": {{{jsonSerialize this}}}{{/each}}
  {{/each}}
}

Thank you!