Default Transform Definitions
Summarize
Summary of Default Transform Definitions
ServiceNow provides a set of default transform definitions designed to manipulate field values during data transformation processes. These definitions apply to text, numeric, and text-numeric fields, enabling standardized data formatting and normalization. They help automate data cleansing, formatting, and rounding tasks to ensure data consistency and quality in your instance.
Show less
Key Features
- Text Transformations: Includes changing character case (upper, lower, proper, formal), inserting or deleting character sequences at specified positions, adding prefixes or suffixes, replacing substrings using literal or regular expressions, trimming spaces, and extracting or modifying substrings from either side or within the string.
- Numeric Transformations: Supports rounding numeric values to configured intervals with various rounding criteria such as half up/down, toward/away from zero, and rounding to even/odd numbers. Also includes converting values to constants and trimming spaces.
- Position Parameters: Many text transforms use start and end positions to define the substring for operations. Understanding position modes is essential for precise modifications.
- Transform Variables: Allow administrators to reuse the same transform definition across different fields and contexts with customizable parameters, increasing flexibility and efficiency.
- Transform Categories: Enable grouping of related transform definitions to organize and manage them effectively.
- Custom Transform Scripts: Administrators can create scripts during configuration to implement complex or specialized data transformations beyond the default options.
Practical Application for ServiceNow Customers
Using these default transform definitions, you can automate the normalization of imported or integrated data, ensuring it adheres to your organization's standards without manual intervention. For example, you can automatically convert text fields to proper case, remove unwanted characters, or round numeric values according to business rules. The ability to create custom definitions and variables allows tailoring transformations to specific data sources or fields, enhancing data quality across your ServiceNow environment.
When configuring transformations, pay attention to parameter settings such as position modes and rounding intervals to align with your data's format and units. Grouping transforms into categories and leveraging transform variables will simplify management and reuse.
The system offers default transform definitions for fields containing text, text numeric, and numeric values.
| Transform Type | Category | Description | Parameters |
|---|---|---|---|
| Change case | Text | Changes the case of the characters in the field value. | Mode: Select one of the following modes:
|
| Constant | Text Numeric | Converts the value in this field to a constant. | Constant: The constant with which to replace the value in this field. |
| Delete | Text | Delete a specified sequence of characters from a field value. |
|
| Insert | Text | Insert a fixed character sequence into a field value. |
|
| Left | Text | Deletes or keeps a specified number of characters from the left side of this field value. |
|
| Prefix | Text | Adds characters to the beginning of a field value. | Prefix: Defines the characters to add to the beginning of the transformed field value. |
| Replace | Text | Replaces occurrences of one string with another string. The special characters backslash (\) and dollar sign ($) in the replacement string can cause the transform to be different than if the replacement string were being treated as a literal replacement string. Use a regular expression to replace a string or parts of a string. |
|
| Right | Text | Retains or deletes a specified number of characters from the right side of a field value. |
|
| Round | Numeric | Rounds integers to a configured rounding interval using specific criteria. The interval must be appropriate to the value being transformed, such as an interval of 12 for a value expressed in dozens or 0.01 for decimal values expressed in hundredths. |
|
| Substring | Text | Keep or delete characters from a specified sub-sequence of characters in the field value. |
|
| Suffix | Text | Appends characters to the end of a field value. | Suffix: Defines the suffix to add to the end of the field value. |
| Trim | Text Numeric | Removes blank spaces from the field value. | No parameters |