# How to use Transformation during import

{% hint style="info" %}
**Prerequisite:** This tutorial assumes you know the basics of the import feature. If this is not the case you can learn the basics in other guides here: [How to use import](/pim3/tutorials/helpful-guides/how-to-use-import.md)\
\
The tools this tutorial goes through are all found on the data mapping page of import
{% endhint %}

## Transformation

When importing Text or Number [attributes](/pim3/fundamental-concepts/attributes.md) you can choose to do Transformation on the incoming values. This is done by clicking the 'Transform' text to the right of the data mapping.

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

Whether you click 'Transformation' for a Text [attribute](/pim3/fundamental-concepts/attributes.md) or Number [attribute](/pim3/fundamental-concepts/attributes.md) determines the tranformations that are eligible.

Transformation for Text has the following options:

* All caps
* All non caps
* Capitalize first letter in sentence
* Capitalize first letter in word
* Trim
* Replace
* Regex replace

These are all pretty selfexplanatory and require no other choices to be made, except Replace and Regex replace.

<figure><img src="/files/IUUKYkOSMyc1zWyU7idY" alt=""><figcaption><p>Replace for Text attribute</p></figcaption></figure>

Replace takes an 'Old value' and a 'New value'. In the example above all occurences of 'jacket' will be replaced with 'pillowcase' for the [attribute](/pim3/fundamental-concepts/attributes.md) the Transformation was added to.

Regex replace is similar, however it takes a pattern instead of an 'Old value'. This pattern is in the form of a regular expression and all occurences that fits the pattern will be replaced with the new value.

Transformation for Numbers has the following options:

* Divide
* Minus
* Multiply
* Plus

And they do exactly what they say.

<figure><img src="/files/7H3RoDNouPjuXhKZbC1J" alt=""><figcaption><p>Transformation for Number attribute</p></figcaption></figure>

Having chosen your Transformation type simply input the Number for the operation and the operation will be executed on the [attribute](/pim3/fundamental-concepts/attributes.md) that is imported.


---

# 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.struct.com/pim3/tutorials/helpful-guides/how-to-use-import/how-to-use-transformation-during-import.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.
