Transformation Designer - example - changing data
Using the sample data from above, the following TML will convert the phone numbers in the input data to use a different dialling code.
TML
<?xml version='1.0'?> <transformation> <map> <target>SSC/Payload/AddressBook/Address/Name</target> <source>generated-by-outlook/contact/name</source> </map> <transform> <target>SSC/Payload/AddressBook/Address/TelNum</target> <function name="updateSTD"> <param>generated-by-outlook/contact/phone</param> </function> </transform> <script> function updateSTD(phone_num) { phone_num.replace("0181 ", "0208"); phone_num.replace("0171 ", "0207"); return phone_num; } </script> </transformation>