<h2>Create a transform map</h2><br/><div style="overflow-x:auto"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta content="text/html; charset=UTF-8" /><meta name="copyright" content="(C) Copyright 2025" /><meta name="DC.rights.owner" content="(C) Copyright 2025" /><meta name="generator" content="DITA-OT" /><meta name="DC.type" content="task" /><meta name="DC.title" content="Create a transform map" /><meta name="abstract" content="Every import operation to a production table requires at least one transform map associated with an import set." /><meta name="description" content="Every import operation to a production table requires at least one transform map associated with an import set." /><meta name="DC.subject" content="transform map, create" /><meta name="keywords" content="transform map, create" /><meta name="DC.relation" scheme="URI" content="../../../administer/import-sets/concept/c_ImportDataUsingImportSets.html" /><meta name="DC.relation" scheme="URI" content="../../../build/create-integrations-apps/concept/create-integrations-applications.html" /><meta name="DC.relation" scheme="URI" content="../../../build/create-integrations-apps/concept/imports-overview-page.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/import-sets/reference/import-sets-landing-page.html" /><meta name="DC.creator" content="ServiceNow" /><meta name="DC.date.created" content="2023-08-03" /><meta name="DC.date.modified" content="2024-02-01" /><meta name="DC.format" content="XHTML" /><meta name="DC.identifier" content="t_CreateATransformMap" /><link rel="stylesheet" type="text/css" href="../../../CSS/commonltr.css" /><title>Create a transform map</title></head><body id="t_CreateATransformMap"> <div class="breadcrumb"><a class="link" href="../../../build/create-integrations-apps/concept/create-integrations-applications.html" title="Increase the impact of your cross‑enterprise workflows by connecting any application or data. Connect people, processes, and apps to enhance the value of your ServiceNow investment.">Creating integrations with applications</a> > <a class="link" href="../../../build/create-integrations-apps/concept/imports-overview-page.html" title="Import data from external systems and transform it into ServiceNow AI Platform record data.">Imports</a> > <a class="link" href="../../../administer/import-sets/reference/import-sets-landing-page.html" title="Import sets enable administrators to import data from various data sources, and then map that data into ServiceNow tables.">Import sets</a> > </div> <h1 class="title topictitle1" id="ariaid-title1">Create a transform map</h1> <div class="body taskbody"><p class="shortdesc">Every import operation to a production table requires at least one transform map associated with an import set.</p> <div class="section prereq p">Role required: import_transformer, import_admin, or admin</div> <div class="section context">The transform map specifies the data relationships between the import set and the target table. For every transformation, you must either create a new transform map or select an existing one.</div> <ol class="ol steps"><li class="li step stepexpand"> <span class="ph cmd">Navigate to <span class="ph menucascade"><span class="ph uicontrol">All</span> > <span class="ph uicontrol">System Import Sets</span> > <span class="ph uicontrol">Create Transform Map</span></span>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Complete the form.</span> <div class="itemgroup info"> <div class="p"> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="t_CreateATransformMap__table_mbl_c2s_1gb" class="table" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 1. </span>Table transform map fields</span></caption><colgroup><col style="width:50%" /><col style="width:50%" /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d541686e94">Field</th><th class="entry cellrowborder" style="vertical-align:top;" id="d541686e97">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d541686e94 ">Name</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d541686e97 ">User-friendly label to identify the transform map.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d541686e94 ">Source table</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d541686e97 ">Import table containing the raw import set data. An import table is any table that extends the Import Set Row <code class="ph codeph">[sys_import_set_row]</code> table. You can select only tables within the currently selected application scope.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d541686e94 ">Active</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d541686e97 ">Check box to make the transform map available for use.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d541686e94 ">Run business rules</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d541686e97 ">Check box to run business rules, workflows, approval engines, auditing, and field normalization while the transformation inserts or updates data into the target table. Clearing this check box runs GlideRecord.setWorkflow() with a value of <span class="ph uicontrol">false</span>.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d541686e94 ">Enforce mandatory fields</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d541686e97 ">Selects whether to enforce mandatory fields on the target table:<ul class="ul" id="t_CreateATransformMap__ul_knk_y1s_1gb"><li class="li"><span class="ph uicontrol">No</span>: Do not enforce mandatory fields.</li><li class="li"><span class="ph uicontrol">Only Mapped Fields</span>: Enforce mandatory mapped fields only.</li><li class="li"><span class="ph uicontrol">All Fields</span>: Enforce all mandatory fields.</li></ul> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d541686e94 ">Copy empty fields</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d541686e97 ">Check box to copy empty field values and override existing target field values.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d541686e94 ">Create new record on empty coalesce fields</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d541686e97 ">Check box to create a new record when all coalesce fields are empty, instead of ignoring the record or overwriting an existing record.<p class="p">If <span class="ph uicontrol">Coalesce empty fields</span> is selected for any field in the record, the record is coalesced.</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d541686e94 ">Application</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d541686e97 ">Application scope: global or per application.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d541686e94 ">Created</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d541686e97 ">Transform map creation date (populated automatically).</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d541686e94 ">Target table</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d541686e97 ">The table in which you want the transformed data to be inserted. You can select only tables within the currently selected application scope or the global scope, or tables that grant write access to other applications.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d541686e94 ">Order</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d541686e97 ">Order in which to apply transform maps if more than one map fits the conditions. The system runs transform maps from lowest to highest <span class="ph uicontrol">Order</span>.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d541686e94 ">Use Secondary Storage for References</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d541686e97 "><p class="p">Option to use a secondary database to look up reference fields.</p> <p class="p">Importing a high volume of data that includes many reference fields might cause performance issues. Using secondary storage enables some read queries to be redirected to a secondary database, reducing the load on the primary database.</p> <p class="p">When using secondary storage, set the <span class="ph uicontrol">Choice action</span> field in the field map to <span class="ph uicontrol">ignore</span> or <span class="ph uicontrol">reject</span>. Setting the <span class="ph uicontrol">Choice action</span> to <span class="ph uicontrol">create</span> may cause multiple copies of a record to be created because the reference resolution doesn't detect newly created records immediately. For more information, see <a class="xref" href="t_CreatingAFieldMap.html" title="Field maps establish a relationship between a field in an import set table and a field in the target table.">Create a field map</a>.</p> <p class="p">A secondary database is always slightly out of date compared to the primary database. If your import requires completely up-to-date data, don't use secondary storage.</p> <p class="p">This field appears only when the Secondary Database Pools [com.glide.secondary_db_pools] plugin has been activated, and the import_reference_resoultion secondary database category has been configured and enabled. For more information, see <a class="xref" href="../../../administer/technical-best-practice/concept/c_TroubleshootImportSetPerformance.html#large-imports-reference-fields" title="Importing a high volume of data with many references to resolve might take longer than expected or cause the database to slow down.">Large data imports with many reference fields</a>.</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d541686e94 ">Run script</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d541686e97 ">Check box to define a script that transforms field values in the source table to the target table.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d541686e94 ">Script</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d541686e97 ">Transform map script that transforms field values in the source table to the target table. The system runs the transform map script in addition to any field maps.</td></tr></tbody></table> </div> </div> <div class="note important"><span class="importanttitle">Important:</span> The string <code class="ph codeph">NULL</code> is a reserved word. It should not be used as a field value in import set transform maps or anywhere in the <span class="ph uicontrol">First name</span> or <span class="ph uicontrol">Last name</span> fields. The reserved word is <code class="ph codeph">NULL</code> in all capital letters. A field with the value <code class="ph codeph">Null</code> or <code class="ph codeph">null</code>, for example, is acceptable. <code class="ph codeph">NULL</code> should be used only to clear out a particular field.</div> </div> </li></ol> </div> <div class="related-links"> <div class="familylinks"> <div class="parentlink"><strong>Parent Topic:</strong> <a class="link" href="../../../administer/import-sets/concept/c_ImportDataUsingImportSets.html" title="To import data define a data source and transform map, and run or schedule an import.">Importing data using import sets</a></div> </div> </div></body></html></div>