Computed Field Methods
Constant
Adds a key/value pair to an extraction, where the value is a constant that’s not necessarily present in the document. This lets you include information, such as vendor or form names, that may be lacking from the document. For example, imagine a vendor solely issues 6-month policy quotes, so they never state the policy duration in the document. Use the Constant method to add policy_duration_months: 6
.
Parameters
The following parameters are in the computed field’s global Method parameter:
key | value | description |
---|---|---|
id (required) | constant | |
value (required) | string | The value to return in the field’s key/value pair output |
Examples
The following example shows adding a form name and policy duration as constants to a config’s output.
Config
JSON
Example document
Example document | Download link |
---|
Output
JSON