Skip to content
+1-888-319-3663

HELP ARTICLE

GlobalFileName not populated when using in a script


I am attempting to write an after map script and use the GlobalFileName value to report the name of the source file with the error.  The GlobalFileName field does not appear to be populated.  

GlobalFileName does not automatically populate, you would need to write your own script to insert a value into the variable. 

There are 2 types of global variables, system variables and user variables.  System variables are automatically populated when the map runs, and user variables are blank by default and must be set using a script. 

The following system variables are automatically populated only during a map run.  Any extra scripts that update these variables will be ignored at runtime.

GlobalCompanyID – The tenant ID to which the map is currently sending data.
GlobalErrorCount – A count of documents that have failed during the map run.
GobalLastError – The last error message recorded by the map run.
GlobalMapDescription – The map description as entered in the map setup screen
GlobalMapID – The map ID as entered in the map setup screen.
GlobalProcessCount – The total number of documents to be processed during this map run.
GlobalRollingColumn – The current value of the rolling column set as ‘use for global variable’ in map setup. This is only available at the document level task, not the map level tasks.
GlobalRunDate – The date of the run.
GlobalRunEnded – The date / time the run ended.
GlobalRunErrors – A list of all errors encountered during the map run.
GlobalRunNumber – The current run number for the selected map.
GlobalRunStarted – The date / time the map run started.
GlobalSuccessCount – A count of the successful documents for this run.
GlobalUserID – The user ID of the current windows user.

The following user global variables are available for use within SmartConnect. These variables are updated through scripting or through defaults in system or map setup. These variables are by default all empty strings and may be used as and when required for maps.

GlobalAdministratorAddress
GlobalBCCAddress
GlobalCCAddress
GlobalFileName
GlobalFilePath
GlobalFromAddress
GlobalMessage
GlobalToAddress

RECENT POSTS


Use the REST Connector to parse nested Value Arrays
SmartConnect email task fails with error: An invalid character was found in the email header
Does SmartConnect import into Avalara Avatax software
Could not initialize a collection when launching SmartConnect
ERROR [HY000] [Microsoft][ODBC Excel Driver]General error Unable to open registry key when you open a SmartConnect map.

POPULAR POSTS


SSL Security error using OLEDB Connection
This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms
Removed Part: /xl/vbaProject.bin part. (Visual Basic for Applications (VBA))
The server process could not be started because the configured identity is incorrect.
Using WINSCP and a task to upload or download files from an SFTP site

CATEGORIES

TAGS

Business Central CRM D365 Business Central Dynamics 365 dynamics crm Dynamics GP Dynamics NAV Econnect Employee Spotlight eone eOne News error Error Message Events Excel Excel Report Builder Extender Flexicoder GP integration Map Meet the Team Microsoft dynamics crm Microsoft Dynamics GP Navigation List Builder Office Relationships partners Popdock release Reporting SalesForce SalesForce.com SmartConnect SmartConnect.com SmartConnect Bootcamp SmartConnect Maps SmartConnect Office Hours SmartList SmartList Builder SmartPost SmartView SQL Tech Tuesday Templates training

Integrate & Automate without Any Code.

SmartList Data has Never Been Faster.

The Easiest Way to Report on GP Data.