{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":22224,"path":"integrate-applications/system-import-sets/r_FieldMapScriptVars.md","title":"Field map script variables","bundle":null,"doc_type":null,"release":"australia","body":"\n# Field map script variables\n\nSeveral predefined variables are available in the **Source script** field.\n\n<table id=\"table_sly_ybg_r5\"><thead><tr><th>\n\nVariable\n\n</th><th>\n\nType\n\n</th><th>\n\nDescription\n\n</th></tr></thead><tbody><tr><td>\n\nsource\n\n</td><td>\n\nGlideRecord\n\n</td><td>\n\nThe record from the source table that is currently being processed.\n\n</td></tr><tr><td>\n\ntarget\n\n</td><td>\n\nGlideRecord\n\n</td><td>\n\nThe record from the target table that is currently being processed.\n\n</td></tr><tr><td>\n\nanswer\n\n</td><td>\n\nString\n\n</td><td>\n\nThe field value to set in the target record.\n\n</td></tr><tr><td>\n\nmap\n\n</td><td>\n\nGlideTransformMap\n\n</td><td>\n\nRead-only information about the current transform map record.\n\n</td></tr><tr><td>\n\nlog\n\n</td><td>\n\nFunction\n\n</td><td>\n\nThe log object for the current import run. Use this object to log messages such as `log.info(\"<Message>\")` or `log.warn(\"<Message>\")`. This object logs to the import log for standard import sets, or other log locations as required, such as for web service imports.\n\n</td></tr><tr><td>\n\naction\n\n</td><td>\n\nString\n\n</td><td>\n\nContains 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**.\n\n</td></tr></tbody>\n</table>**Parent Topic:**[Importing data using import sets](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/system-import-sets/c_ImportDataUsingImportSets.md)\n\n"}}