# Field Mapping & Transformation

The definitions of the Source to Target field maps are automatically generated by appRules and can optionally be modified to suit your needs.  You can use also appRules field mapping to transform Source data before saving in the Target.

### **The MapRecordFields Activity**

<figure><img src="/files/uZO4klrA5q4fcLv9YqrM" alt=""><figcaption><p>The MapRecordFieds Activity</p></figcaption></figure>

### **Conditional Field Mappings**

You can also optionally define Mapping Conditions to be utilized in the mapping process using the appRules Condition Editor:&#x20;

<figure><img src="/files/ddCb0iuKGkpMBEumGQyL" alt=""><figcaption><p>Control Mapping Using appRules Condition Editor</p></figcaption></figure>

To configure a Condition to be applied to a row in the MapRecordFields modal:

* Configure the Condition by navigating the Condition tree on the appRules Condition Editor                 (Condition-->Category-->Type).
* Configure the properties of the selected condition type.
* Name and save the condition.
* Apply the condition by selecting it on the Mapping Condition column of a specific row of the table in the MapRecordFields modal.                                                                        ![](/files/4uPsnCGu5shCFwXhc4Cc)&#x20;

### Transformations Using Action Fields

You can quickly transform values in the mapping activity modal by configuring Action Fields without writing code using the appRules Action Editor:

<figure><img src="/files/auAAN4LtOygvi9y2iYLz" alt=""><figcaption><p>Transform Values Using appRules Action Editor</p></figcaption></figure>

To transform a value using the ActionField option:

* Configure the Action by navigating the Action tree on the appRules Action Editor                 (Field-->Field-->Module-->Type).
* Configure the properties of the selected action type.
* Name and save the action.
* On a specific row of the MapRecordFields modal, select ActionField as the Source of the value to be mapped to a target field. Then select the Action that you have created above.                                                                                                                                                                                                                                                 ![](/files/QrAV6Jqw35WhieB7Eb5m)


---

# 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.appstrategy.com/apprules-r-documentation/platform-products/apprules-data-migration-engine/field-mapping-and-transformation.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.
