Populate Docx List from Array of Strings

Hello

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.
image

Right now, my template is configured like this.
image

But this is what I get on the finished document.

Which is different from what I desired to get:
image

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

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

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,
Petr
Plumsail team