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

1
0
-1

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-1ws2e3e.png

1 answer

1
+1
-1
This one is the BEST answer!

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

Notifications