How to edit keys and values in connector: Insert data in a .docx/.odt template?

Hello,

Is there any way or example of how to edit the keys and values using a Groovy script, i.e. using the "Edit as an expression" functionality as shown in the attached image, instead of editing them from the table in the connector: Insert data in a .docx/.odt template?

insert-Data-DOCX

 

Hi,

The expected return type for the replacements is a List of List so you can use the following script:

[
[‘myKey’, ‘myValue’],
[‘anotherKey’, ‘anotherValue’]
]

HTH
Romain