Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

GlideImportSetTransformMap - Scoped, Global

The GlideImportSetTransformMap API provides methods to create transform maps and transform entries.

You can use the GlideImportSetTransformMap methods in global and scoped scripts. Use the sn_impex namespace identifier to create a GlideImportSetTransformMap object.

Parent Topic:Server API reference

Related topics

GlideImportLog

GlideImportSetRun

GlideImportSetTable

GlideImportSetTransformer

GlideTransformLog

GlideImportSetTransformMap - GlideImportSetTransformMap(String transformMapName, String importSetTableName, String targetTableName)

Instantiates a GlideImportSetTransformMap object.

NameTypeDescription
transformMapNameStringName of the map.
importSetTableNameStringName of the Import Set table.
targetTableNameStringName of the target table.
var transformMap = new sn_impex.GlideImportSetTransformMap("temp user map name", importSetTableName, targetTableName);

GlideImportSetTransformMap - addDateTimeTransformEntry(String sourceColumn, String targetColumn, Boolean coalesce, String dateTimeFormat)

Add a GlideDateTime transform entry to a transform map.

NameTypeDescription
targetColumnStringTarget column from target table to transform to.
coalesceBooleanOptional. Flag that indicates whether to insert the record into the target table - true: If true and target table contains a record with the same value in this field, the record is updated, that is, not inserted. - false: Default. Record is inserted into the target table.
sourceColumnStringSource column from Import Set table to transform from.
dateTimeFormatStringOptional. GlideDateTime format of the transform, for example, yyyy-MM-dd HH:mm:ss. If empty, the default value is the system date time format.
TypeDescription
void 
var transformMap = new sn_impex.GlideImportSetTransformMap("temp user map name", importSetTableName, targetTableName,);
transformMap.addDateTimeTransformEntry("u_start date", "first day", true, "yyyy-MM-dd HH:mm:ss");
var transformMapId = transformMap.create();

GlideImportSetTransformMap - addTransformEntry(String sourceColumn, String targetColumn, Boolean coalesce)

Adds a string transform entry to a transform map.

NameTypeDescription
targetColumnStringSource column from Import Set table to transform from.
coalesceStringTarget column from target table to transform to.
sourceColumnBooleanOptional. Flag that indicates whether to insert the record into the target table - true: If true and target table contains a record with the same value in this field, the record is updated, that is, not inserted. - false: Default. Record is inserted into the target table.
TypeDescription
void 
var transformMap = new sn_impex.GlideImportSetTransformMap("temp user map name", importSetTableName, targetTableName); 
transformMap.addTransformEntry("first_name", "first_name", true);
transformMap.addTransformEntry("last_name", "last_name", false);
transformMap.addTransformEntry("age", "age", false); 
var transformMapId = transformMap.create();

GlideImportSetTransformMap - create()

Creates a new transform map.

Note: To create a transform map you must have defined at least one transform entry using either addDateTimeTransformEntry() or addTransformEntry().

NameTypeDescription
None  
TypeDescription
StringThe sys_id of the created transform map.
var transformMap = new sn_impex.GlideImportSetTransformMap("temp user map name", importSetTableName, targetTableName);
transformMap.addTransformEntry("u_first_name", "first_name");
var transformMapId = transformMap.create();