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

Field map script variables

Several predefined variables are available in the Source script field.

Parent Topic:Importing data using import sets

sndocs is an independent community mirror and is not affiliated with or endorsed by ServiceNow.

ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are associated.

© 2026 ServiceNow, Inc. All rights reserved.

Documentation content is redistributed under the Apache License 2.0 from the ServiceNowDocs repository.

VariableTypeDescription
sourceGlideRecordThe record from the source table that is currently being processed.
targetGlideRecordThe record from the target table that is currently being processed.
answerStringThe field value to set in the target record.
mapGlideTransformMapRead-only information about the current transform map record.
logFunctionThe log object for the current import run. Use this object to log messages such as `log.info("")` or `log.warn("")`. This object logs to the import log for standard import sets, or other log locations as required, such as for web service imports.
actionStringContains either the value insert or update, depending on whether the current target row will be created or updated.Note: The action variable is available only when the Coalesce field is false.