> For the complete documentation index, see [llms.txt](https://helpcenter.channable.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://helpcenter.channable.com/manage-improve-product-data/manage-product-and-improve-data-es/reglas-edicion-masiva-y-enriquecimiento/como-utilizar-acciones-entonces-en-las-reglas/accion-de-regla-sostituisci-valore.md).

# Acción de regla: sostituisci valore

Se utiliza para: reemplazar un valor en un campo concreto por otro valor. También se puede usar para eliminar un valor (reemplazar por nada).

Se usa en: sentencias "THEN" y sentencias "ELSE".

Con la regla "replace value" puedes buscar un valor determinado en un campo y reemplazarlo por otro valor que elijas. Si no introduces un valor de reemplazo, reemplazas el valor buscado por nada (=eliminar el valor). Además, si el valor que quieres reemplazar no se encuentra en el campo que seleccionas, la regla no hará nada, por lo que no añadirá el valor de reemplazo de forma aleatoria en ese caso.

Por ejemplo, podrías usar la regla "replace value" para cambiar tus URLs en neerlandés a URLs en alemán. Este ejemplo se muestra en la captura de pantalla de abajo.

<figure><img src="https://content.gitbook.com/content/u8whzIfip72Kvn3M1bsc/blobs/qEUFZFW5di5vXYXh1b5J/channable_rules_what%20does%20each%20rule%20do%20rule%20replace%20value%200.png" alt=""><figcaption></figcaption></figure>

Además de buscar un valor y luego reemplazarlo por otro, la regla "replace value" también se puede utilizar para eliminar ciertos valores de un campo. En ese caso simplemente deja vacío el campo "replace with" (".de" en el ejemplo anterior). La captura de pantalla de abajo muestra un ejemplo en el que la marca se elimina del título de cada ítem.

<figure><img src="https://content.gitbook.com/content/u8whzIfip72Kvn3M1bsc/blobs/7pZjBscaDSOJxdrOTbSU/channable_rules_what%20does%20each%20rule%20do%20rule%20replace%20value%201.png" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://helpcenter.channable.com/manage-improve-product-data/manage-product-and-improve-data-es/reglas-edicion-masiva-y-enriquecimiento/como-utilizar-acciones-entonces-en-las-reglas/accion-de-regla-sostituisci-valore.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
