# FieldValue

A name and value pair passed into a Document AI Workflow run.

> Kind: Apex type · Updated: 2026-11-17

FieldValue is one name and value pair passed into a workflow run. It is used in Types.RunWorkflowPayload for Client.runWorkflow(), and as the Fields input of the Run Doc AI Workflow Flow action, where it appears as the Apex-defined type cldfs__FieldValue.

## Fields

### Fields
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | String | required | Name of the input. It must match an input the workflow declares. |
| value | String | optional | The value, as text. Dates, numbers and record Ids are passed as strings, and the workflow interprets them. |

## Constructors

```apex
global FieldValue(
  String name,
  String value
)
```

```apex
global FieldValue()
```
