When you need data to populate a "template" document, usually document variables or mail merge are used, the main difference being that document variables can only have one value, so you cannot generate multiple entries.
That said, in case you only want to set the values of your fields once, I suggest you refer to this help article
. It demonstrates how to create and insert a document variable to a document.
In case you are trying to achieve the other scenario, please refer to this article
, as well as this demo
. Generally, the item's source of a document can only be one, so you'd have to create an appropriate for your application's logic class that can hold all properties. You can try using ExpandoObject
in order to create the objects on the fly if needed.
I hope this helps! Let us know if you need further assistance.