> For the complete documentation index, see [llms.txt](https://docs.struct.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.struct.com/pim3/tutorials/helpful-guides/how-to-use-import/how-to-use-transformation-during-import.md).

# How to use Transformation during import

By using Transformation during import you can easily manipulate data to your liking

{% 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="https://3609403033-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZJAMIKVcqchSDbt4A7DE%2Fuploads%2F8z8ynQuyBNhfj1o9jyxL%2Fimage.png?alt=media&amp;token=25f6b38a-9861-4505-99b8-ca66b957cbec" 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="https://3609403033-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZJAMIKVcqchSDbt4A7DE%2Fuploads%2FIbXtj4Xszzw0KoyF6Afg%2Fimage.png?alt=media&amp;token=d9082554-4d6e-40aa-abf0-6e994ad8bc36" 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="https://3609403033-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZJAMIKVcqchSDbt4A7DE%2Fuploads%2Fe7J576hm4wKnZCTdSsRK%2Fimage.png?alt=media&amp;token=ebf9559d-f5c6-4227-b225-c8ff85407a93" 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
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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.struct.com/pim3/tutorials/helpful-guides/how-to-use-import/how-to-use-transformation-during-import.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
