# Set field value to a constant

## <img src="/files/oKyEHkfLy1SGL6SKdFtz" alt="" data-size="line"> Set field value to a constant

### Description <a href="#description" id="description"></a>

The Set Field Value To A Constant transform replaces the value of a field with a hard coded constant value that you define.

| Hop Engine | <sup>✓</sup> |
| ---------- | ------------ |
| Spark      | ?            |
| Flink      | ?            |
| Dataflow   | ?            |

### Options

| Option                   | Description                                                                                                                                  |
| ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------- |
| Transform name           | Name of the transform this name has to be unique in a single pipeline.                                                                       |
| Use variable in constant | Select to use a variable replacement within a constant.                                                                                      |
| Field                    | Specify the field that contains the value you want to replace.                                                                               |
| Replace by value         | Specify the value that will replace the original field value specified.                                                                      |
| Conversion mask (Date)   | Specify a date format for the replaced field. See Common Formats for information on common valid date formats you can use in this transform. |
| Set empty string?        | Specify Y to allow an empty string when the value is empty; otherwise, a null value is used.                                                 |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.primeur.com/data-shaper-1.21/knowing-the-data-shaper-designer/pipelines/transforms/setvalueconstant.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
