Transform maps
Summarize
Summary of Transform maps
Transform maps in ServiceNow define how fields from an import set correspond to fields in existing tables, such as Incident or User tables. They enable administrators to specify destination fields for imported data and can be reused to map data from multiple import sets to the same target table. Mapping can be performed simply via drag and drop or dynamically through scripting.
Show less
Key Features
- Reusability: Once created, transform maps can be reused for other import sets targeting the same table.
- Auto-mapping: The system can automatically map fields, but customers should verify that automatically mapped fields, such as encrypted passwords, are appropriate to import.
- Reference field mapping: When mapping reference fields, if the referenced sysid does not exist, the sysid may be incorrectly displayed as the DisplayValue. Mapping many reference fields impacts performance due to validation checks, but this can be optimized using transform scripts like
onBefore. - Multiple transform maps: Customers can apply multiple transform maps to a single import set. Each transform map creates its own import set row, potentially generating many temporary records. Multiple maps execute sequentially in the order specified during data import.
- Transform map scripting: Provides a programming interface to customize and add advanced logic during data import. There are two script types:
- Explicit scripts that define mapping relationships
- Transformation event scripts that modify processing at different transformation stages
Practical Considerations for Customers
- Review and confirm auto-mapped fields to ensure only relevant data is imported.
- Use transform scripts to optimize performance when importing large numbers of reference fields by bypassing reference existence checks if validation is not required.
- Be cautious when using multiple transform maps with the same import set, as it increases temporary records and processing overhead.
- Leverage transform map scripts to tailor complex import scenarios and enforce business rules during data transformation.
A transform map is a set of field maps that determine the relationships between fields in an import set and fields in an existing ServiceNow table, such as Incident [incident] or User [sys_user].
After creating a transform map, you can reuse it to map data from another import set to the same table.
The Transform Maps module enables an administrator to define destinations for imported data on any tables. Transform mapping can be as simple as a drag and drop operation to specify linking between source fields on an import set table and destination fields on any table. Use transform mapping to map source and destination fields dynamically.
For a video overview of transform maps, see the Transform Maps video on the ServiceNow Dev Program YouTube channel.
Transform considerations
- Auto-mapping
- Double-check that fields the system maps automatically are actually required. For example, encrypted passwords probably should not be mapped.
- Mapping reference fields
- If you are mapping reference field data and the sys_id does not exist, the sys_id could potentially appear in the target record as the DisplayValue, and this may be undesirable.
Using multiple transform maps
Multiple transform maps can be applied to a single data source.
Run multiple transforms off a single import set
Users can select multiple transform maps during data import.
The selected transform maps will be executed on the same import set in the order specified.
Transform map scripts
Transform Map scripts allow you to customize import operations using a robust programming interface to introduce advanced logic.
- Explicit Transform Map scripts, which explicitly define mapping relationships
- Transformation Event scripts, which modify the processing of events at different stages of a transformation