Integration returning multiple files

Certified Associate Developer

Hello!

I have an API which is returning an array of documents through an integration call with the response looking something like this: 

{
    documents: [
        {
            documentName: "document1.pdf",
            documentContent: "[BASE64ENCODEDCONTENT]"
        },
        {
            documentName: "document2.pdf",
            documentContent: "[BASE64ENCODEDCONTENT]"
        }
    ]
}

The issue I'm having is that here in the integration where you can make appian to automatically convert the binary data to Document type, appian will recognise multiple files (content of them) through the fv! domain, but there is no way to set the document name for each document through the fv! domain. 

What I want to be able to do is to set the document names similarly like I do here in the screenshot for the documentContent, which then correctly goes through the response and converts the data to document type..

What is the expected way to do this in appian? 

  Discussion posts and replies are publicly visible