...
The example below shows the specific records required to change a user’s email address.
Code Block | ||
---|---|---|
| ||
{ "users" : [ { "source" : { "id" : "invalidEmail@demo", "name" : "usernameInvalidEmail", "email" : "invalidEmail@demo" }, "transformation" : { "emailtransformation" : "validEmail@demo.com"{ "email": "validEmail@demo.com" } } } ] } |
Editing a user in a downloaded JSON file
You can achieve the same by downloading the current mapping file and editing it. If this is the case, the records for the user most probably will look like this:
Code Block | ||
---|---|---|
| ||
{ "users" : [ { "source" : { "id" : "invalidEmail@demo", "name" : "usernameInvalidEmail", "email" : "invalidEmail@demo" }, }, "destination" : { "newObject" : true "newObject": true }, "transformation" : { "emailtransformation" : "validEmail@demo.com"{ "email": "validEmail@demo.com" } } } ] } |
This is in the case that you only add a transformation
record without changing the default source
and destination
user records in the downloaded file. For more details about editing or constructing a mapping file, check this guide.