Available actions
If the data that you are trying to import does not match the field structure of your database, you can add steps to transform the structure in the import specification. The actions that you can select are described.
- Add Prefix
Adds text or values immediately before the import data. For example, Area Code: 01234, Area Code: 01235, Area Code: 01236 where the prefix is "Area Code: ".
- Add Suffix
Adds text or values immediately after the import data. For example, ABC Inc., BCD Inc., CDE Inc where Inc. is the suffix.
- Change Capitalization
Changes the case of text. You can change case to lowercase or uppercase, capitalize initial letters, or reverse the current capitalization.
- Compress Repeated Characters
Replaces repeated characters with a single instance of the character. If you are creating the source text files automatically using products such as spreadsheets or databases, you might find that they insert unnecessary characters into the data file. For example, if a field is defined to be 30 characters long and contains text that is 18 characters long, the text is printed followed by 12 space characters.
- Copy Value from Previous Row
Replaces the value in a column with the value from the same column in the row above it.
- Extract Portion of Text
Extracts a specific part of the data. For example, you might have a log of telephone calls of which only some have an area code, and you want to extract all the telephone numbers and not the area codes.
First Character - The number of the first character to use. Select either From start or From end to specify whether to count from the start or end of the numbered characters in the field.
Last Character - The number of the last character to use. Select either From start or From end to specify whether to count from the start or end of the numbered characters in the field.
: For example, in a list of telephone numbers, you might want to use the last six characters of the telephone number. Telephone numbers might appear as follows in the imported file:
- 01234 567890
- 0234567890
- 441234 567890
- 567890
If you set the following conditions:
First character: 6 (from end)
Last character: 1 (from end)
: You create an entity with the identity: 567890.
- Find and Replace Text
Replaces text with different text. For example, you might remove ordinal suffixes (st, nd, rd, and th) from English-language dates by adding an action for each suffix that replaces it with an empty string.
- Prefix with Another Column
Adds the values from another field immediately before the values imported from the selected field. For example, you can add a Date field to a Time field to import a combined date and time.
- Remove Characters
Removes unwanted characters such as spaces, tabs, or specific characters. For example, the characters () can be removed from (863) 555 0140.
- Remove Prefix
Removes unwanted text from the beginning of a field value. For example, MR(space) can be removed from MR SMITH.
- Remove Suffix
Removes text from the end of a field value. For example, "Esq" can be removed from Andrew SMITH Esq.
- Replace from Substitution File
Replaces a value in a field with values that are taken from a lookup table. The codes for marital status, for example, might be replaced with a term from a lookup table where S = Single, M = Married, D = Divorced.
- Replace Value
Replaces a value with another value that you specify. For example, you want to replace the detailed confidential information displayed in a field with the value CONFIDENTIAL.
- Split Text
Divides the content of a column into two parts at the first occurrence of the split character. For example, a Full Name field "Andrew Smith" might be split into two fields: Name1 "Andrew" and Name2 "Smith".
- Suffix with Another Column
Adds the value from another field immediately after the value imported from the selected field. For example, you can add a Time field to a Date field to import a combined date and time.
- Trim Characters
Trim unwanted characters from the beginning and end of a field, such as spaces, tabs or specific characters. For example the character " can be removed from " Jelico's Restaurant".