# Rule action: Replace value

Used for: replacing a value in a certain field with another value. It can also be used for deleting a value (replace by nothing).

Used in: "THEN"-statements and "ELSE"-statements.

With the "replace value" rule you can look for a certain value in a particular field and replace it with another value of your choice. If you don't enter a replacement value, you replace the value you search for with nothing (=deleting the value). Also, if the value you want to replace is not found in the field you select, the rule will do nothing, so it will not randomly add the replacement value in that case.

You could, for example, use the "replace value" rule to change your Dutch URLs to German URLs. This example is shown in the screenshot below.

<figure><img src="/files/f2f6b9478738de7e53b39a723630a9167ba65bf6" alt=""><figcaption></figcaption></figure>

Besides searching for a value and then replacing it with another value, the "replace value" rule can also be used to delete certain values from a field. In this case you just leave the "replace with" field (".de" in the example above) empty. The screenshot below shows an example in which the brand is deleted from the title of every item.

<figure><img src="/files/668516a5f047feb1cfd9a2f286ae00ffe300c74c" alt=""><figcaption></figcaption></figure>


---

# 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://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/rule-action-replace-value.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.
