Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

DataBridge supports transformations for import and export files. Data transformations can be added to import and export jobs. 
Click here to view the article on Transformations for DataBridge Export.

Note: Transformations can now be chained together so the field created by a transformation can be further transformed. More info

TIP 1Notes can be added to transformations to make their purpose clear. 

Image Added Image Added

TIP 2: After you select a transformation and go to the Configure Fields page in your DataBridge Profile you can easily see which columns the Transformation have been applied to. An icon has been added with a tooltip that shows all the transformations applied to the column, in the order in which they are applied.

Image Added

TIP 3A preview of the transformed columns is now available directly in the transformation window. More information

How to

Create a new profile or edit an existing profile by clicking Manage profile. On the Transform page, select the Transformation you want and click Add.

...

The options to choose from are

Add conditional field

Create a new field with the value of the selected field. When the value of that field is empty, the value of the fallback field will be used.

Add field

Add a new field with a fixed value.

Append text value

Allows prepending and appending text to field values

Clean field

Cleans a text field using a specific cleaning option. All cleaning options include white space, commas and periods.
Clean number removes all non-digit characters.
Clean text removes all special characters like dashes and dots.
Convert to a numeric value (whole number) removes all non-digit characters and leading zeros from the input value and treats it as a number. The maximum value for that number is 2147483647.

Copy field

Can be used for when you want one field from the source to map to multiple fields in the destination (for example: address which can be both visit and postal).

Current date time

This transformation can be used to fill a field with the current date and time

Find Pattern

Find and extract the value from the field using the regular expression search pattern. Example: the ID between parentheses should be extracted from "Doe, John (AB12345)"

Format text value

Formats the value in the field.

Map listConverts each possible value of an input field into an item from a specific list in the destination. More info

Merge fields

Merges the input fields into newly defined output fields.

Remove fields

Prevents the selected fields from appearing in the output.

Rename fieldfields

Renames the title of the field and leaves the value unchanged.

ReplaceIf the field matches the specified value it will be replaced by a new value. For example: if the input value is 'OK' it can be replaced by 'TRUE' and used to turn interests on.

Note: The replace transformation is removed, users are supposed to use the Map list transformation instead

Skip

If the field matches the specified value the record will be skipped

Split field

Splits a field with a separator and adds a new field with the selected segment(s)

You can find a detailed description of this transformation here

Switch fieldsUse this transformation to configure which field to import the value from depending on the value of another field.


The added transformations can be edited or removed at any time, see below.


Transform5.pngImage RemovedImage Added

NOTE: If you are adding transformations to an existing profile with mappings in place and choose to use the Rename field transformation you will see the message as shown in the picture below. 
This means that mapping is no longer valid, due to the renaming. 
This can easily be fixed by clicking the Remove Invalid Mapped Fields button and map the field to the correct field.

Transform6.pngImage RemovedImage Added

THE OUTPUT RESULTS

...

For our import, we have chosen to add a field Code with a fixed value 123.

Transform13.pngImage RemovedImage Added


The result can be seen on the Configure fields page.

Transform14.pngImage RemovedImage Added

Append text value

The “Append text value” transformation allows for prepending and appending text to field values. Prefixing and suffixing tabs and new line characters are also supported.

Transform21.pngImage RemovedImage Added

Clean field

In the example below, we have chosen the transformation 'Clean field' to clean the column with phone numbers. As clean option the Clean Number field is selected.convert a value with leading zeros and non-digits to a numeric value. 

Image Added

In the Configure Source page you can see the phone numbers and on original value in the preview
Image Added

In the Configure Fields page you can see the result of the transformation, the nonthe leading zeros and non-digit characters are removed.

Image Removed

Image RemovedImage Added

Copy field

The Address field from the Import file will also be used for the postal address. This can be achieved by choosing the Copy Field transformation.

Transform16.pngImage RemovedImage Added

The result can be viewed on the Summary page. The Address column from the import file can be used twice.

Transform17.pngImage RemovedImage Added

Current date time

This transformation can be used to fill a field with the current date and time.
In this example, we will fill a user-defined field with the latest update by DataBridge. 

First, choose the Transform 'Current date time' and fill in a field name. 

Transform19.pngImage RemovedImage Added

The next step is to map the new field to a SuperOffice field. In this example, we use a User Defined Field called 'DataBridge Import Date'. 

Transform18.pngImage RemovedImage Added

After running the Import job, the current date and time are filled in in the Udef of SuperOffice.

Image Added

Find Pattern

Find and extract the value from the field using the regular expression search pattern. Example: the ID between parentheses should be extracted from "Doe, John (AB12345)"

A regular expression is a form of advanced searching that looks for specific patterns, as opposed to certain terms and phrases. With RegEx you can use pattern matching to search for particular strings of characters rather than constructing multiple, literal search queries.

  • Add the transformation "Find Pattern" and choose the field you want to extract the data from. In this example the field ID
  • Choose a name for the Output field
  • And fill in the RegEx you need. In this example I need Any data between the parentheses so I will use \((.*)\)

Image Added

In the Configure Fields page in your DataBridge Profile you can now see the new field with the extracted data. Transform20.pngImage RemovedIt can now be mapped to the correct field in Superoffice.

Image Added

Please visit this page for more examples to inspire you.

Note: We support two scenarios: (1) regex without any capturing groups and (2) regex with one capturing group
(1) Anything that match the pattern will be used as the value (my example before the last example)
(2) The value in the capturing group will be uased as the value (all other examples)

Format text value

With Format text value you can format the values in the chosen field. There are a couple of format options.
As an example let's use 'hello YouTube'

Upper caseAll in upper caseHELLO YOUTUBE
Lower caseAll in lower casehello youtube
Capitalize firstFirst letter in capitalHello YouTube
Capitalize first decapitalize restFirst letter in capital, rest in lower caseHello youtube
Capitalize wordsFirst letter of each word in capitalHello YouTube
Capitalize words decapitalize restFirst letter of each word in capital, rest in lower caseHello Youtube
TrimTrim will remove all leading and trailing white-space from the value in the fields


Transform14.pngImage RemovedImage Added

We have chosen the format 'Upper Case' for the Company field. And this is the result in the Configure fields.

Transform15.pngImage RemovedImage Added

Map list

Converts each possible value of an input field into an item from a specific list in the destination. This transformation is an enhancement for the Replace transformation so you do not have to use multiple Replace transformations anymore.

...

In this example, the fields Address and Number will be merged into a new output field Street address. As a delimiter, a space is used.

transform10.pngImage RemovedTabs and new line characters as a delimiter can also be used.

Image Added

On the Configure fields page, you can see the result of the merge.

Transform11.pngImage RemovedImage Added

Remove fields

Prevents the selected fields from appearing in the output. This transform makes the most sense for Export, more info

...

In the picture below you see the preview of a file with the column header 'Bedrijf'. With the transformation 'Rename field' we want to rename this column header from Dutch to English, to the column header 'Company'

Transform7.pngImage RemovedImage Added

Transform3.pngImage RemovedImage Added

The result can be seen in the Configure Fields page.

Transform8.pngImage Removed

Replace

In this example, the values in the column Partner will be replaced when they match the value OK. This value will be replaced with True. This True value can be used to turn on interests in SuperOffice.

Transform12.pngImage Removed

On the Configure fields page, you can see the result of the replace transformation.

Transform13.pngImage Removed

Image Added

Skip

With this transformation, you can choose to skip a record when a specified value is matched.

Image RemovedImage Added

Split field

Splits a field with a separator and adds a new field with the selected segment(s)

You can find a detailed description of this transformation here

Switch fields

The Switch fields transformation can be used to configure which field to import the value from depending on the value of another field.

In this example the SuperOffice field Our Contact is dependend on the country of the imported company.

When the country is Netherlands, the person from the import file's Account manager column should be used. And when the country is Norway a fixed value (Thomas Speekenbrink) should be used. 

More detailed information can be found here

Image Added