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


RM Apply Detail SmartList Builder Template
The timeout period elapsed while attempting to consume the pre-login handshake acknowledgement
Wrong Date in Dynamics CRM/D365 for Customer Engagement Data Source
NAV 2017 Error: Data object not provided
Accessing your SmartConnect.com environment after purchasing on behalf of your customer at the eOne Shop

POPULAR POSTS


Removed Part: /xl/vbaProject.bin part. (Visual Basic for Applications (VBA))
Manufacturing Serial Trace SmartList Builder Template
The server process could not be started because the configured identity is incorrect.
How to update SmartConnect from 10.0.0.51 to SmartConnect 2014
Running a map in SmartConnect and receiving an error that says "The source was not found, but some or all event logs could not be searched."

CATEGORIES

ARCHIVES

open all | close all

TAGS

CRM Demo Dynamics Dynamics 365 dynamics crm Dynamics GP Dynamics NAV Econnect Employee Spotlight eone eOne News eOne Spotlight ERP Events Excel Excel Report Builder Extender Flexicoder GP GPUG integration integration manager Meet the Team Microsoft Microsoft dynamics crm Microsoft Dynamics GP Office Relationships partners release SalesForce SalesForce.com scripting SmartConnect SmartConnect.com SmartConnect Office Hours SmartList SmartList Builder SmartList Designer SmartView SQL Support Tech Tuesday Templates training Zendesk

Integrate & Automate without Any Code.

SmartList Data has Never Been Faster.

The Easiest Way to Report on GP Data.