Populate Docx List from Array of Strings


Just with another question that I seem I can’t figure out how to solve.
I generate documents passing a docx file to the API. I have a list that I need to fill from an array but the output is not what I was hoping for.
I read the docs in: Lists in DOCX templates — Plumsail Documents Documentation
But it seems it only explains how to work with an array of objects, not an array of strings.

Here is the whole situation:

My data is as the following. Just an array with strings.

Right now, my template is configured like this.

But this is what I get on the finished document.

Which is different from what I desired to get:

I got the idea to pass an index or so, but I don’t know if it might work.

Any thoughts on how can I solve this without modifying my data?

Hello @suarcos,

Yes, our template engine doesn't parse the array values into individual values and the list feature works only if you already have strings for this.

To get this working, you need to extract the individual strings from the array and then send to the template.

Although, we have the join formatter that works with arrays and can present them in a user friendly format in the result document. Please check this one, probably it's worth to change the source template format and use this JOIN formatter instead of trying to parse the source array.

Best regards,
Plumsail team