Table of Contents

Codeunit "Word Template Field Value"

ID 9983
Namespace: System.Integration.Word

Provides an interface to define custom field values for Word Templates

Properties

Name Value
Access Public

Methods

GetRecord

Get the record that we are currently merging into the word document.

procedure GetRecord(): RecordRef

Returns

Type Description
RecordRef

RecordRef to the current record.

AddFieldValue

Set the value of a specific field. The field must already have been added in the Word Template Custom Fields codeunit.

procedure AddFieldValue(CustomFieldName: Text, CustomFieldValue: Text[2048])

Parameters

Name Type Description
CustomFieldName Text

Name of the custom field, which was already specified in the Word Template Custom Fields codeunit.

CustomFieldValue Text[2048]

Value of this field for the current record.

See also