Tray Embedded / Advanced Topics / Data Mapping / User-defined mapping

User-defined mapping

Overview

There may be some cases where it is too restrictive for your End Users to only be able to choose from a pre-configured list of fields.

For example your End Users might be using different MySQL database tables with different field names and you want them to be able to name the fields to be mapped to themselves.

One End User may wish to set up the following mapping:

Service 1 Service 2
name account_name
id stripe_id
phone cellphone
email email_address

While another may wish to set up the following mapping:

Service 1 Service 2
name customer_name
id id
phone mobile
email email

To do this you can follow the usual procedure for data mapping, as outlined in the Hardcoded Example.

Then, when editing the Config Wizard in the Solution Editor, you can tick the Allow custom values box:

allow-custom-values

This allows the End User to then manually enter the values they wish

enter-custom-mapping-values