Mapping example 7
Transforming attribute values
Attribute values can be transformed. This is typically done with lookups. If the attribute value in the DT needs to be transformed to a different value in the CT, this can be done in the transform value section.
{
"copyFromDT": "configuration/relationTypes/HasAddress/attributes/AddressRank",
"copyToCT": [
"configuration/relationTypes/HasAddress/attributes/AddressRank"
],
"transformValue": [
{
"from": "1",
"to": "0"
},
{
"from": "2",
"to": "0"
}
]
}
Or
In this example, an address rank in the DT of either one or two is transformed to an address rank of zero in the CT. This enables you to control how values on the DT map to corresponding values on the customer tenant.