Skip to main content
Version: 4.1 (2026 H2)

Use Cases

The reference pages describe each document function on its own. The use cases show how the building blocks work together: Each example leads from the data source to the place in the document and contains every configuration in full, ready to copy.

Examples​

Use caseData sourceBuilding blocks
Letter with a recipient from an address data sourceUser, address data sourceForms (Object, DataProvider), Fields, Bind field
Case number from the business application in the headerThird-party system via ConnectData, Fields, Placeholder Mapping, Placeholder Definition, Global Translations
Participant list as a tableUserForms (ObjectCollection), Fields (WordTableRows), Bind field

Structure of an example​

Every example follows the same structure: starting point and result, the building blocks involved with a link to the reference, the data flow, the configuration step by step with the reason for every non-obvious step, testing without a production system, variants and pitfalls.

The examples use neutral names: systems by their role («business application», «address data source»), English ids, labels set directly in Label. The configurations therefore work without preparation and can be taken over into any Datasource. For multilingual templates, use translate-Label with global translations; only the case-number example requires such a translation, because its label follows the document language.

Data types at a glance​

Where a type comes from, what it delivers in code and how it gets into the Word document. Origin: Forms, Data, Fields, profile, snippets, global translations. Inserting: Bind field, placeholder in the layout.

TypeOriginValue in JavaScriptInserting in Word
TextForms, Data, Fields, profileStringplain-text content control («Bind field») or Text placeholder in the layout
ChoiceFormsselected option Value as String; label via $.getChoiceLabel(…)via a Text field
DateForms, Fieldsdate object; .Value for $.formatDate(…), $.getDateAsText(…) for the formatted textdate content control or Text placeholder in the layout
YesNoForms, FieldsBooleannot directly; drives logic in Fields, in PowerPoint the visibility via tags
FormattedTextData, Fields, global translations, snippetsFormattedTextrich-text content control
WordContentData, Fields, snippetsWordContentrich-text content control, own paragraphs
InlineWordContentFieldsInlineWordContent, exactly one paragraphrich-text content control within a paragraph
WordTableRowsFieldsWordTableRowsthe content row of a table, copied for every entry
PictureFields, profile (e.g. Profile.Org.Logo)imagepicture content control or Picture placeholder in the layout
ObjectForms, Data, FieldsJavaScript object with the schema ids as properties; null when no entry was creatednot directly; output via a field
ObjectCollectionForms, Data, Fieldsarray of such objects; empty is []not directly; output via a field, e.g. WordTableRows

Details: Return value of field types, Objects and ObjectCollections in code, Field type per Office application.