Variables

EFT Server uses context variables to pull data from the database. The variable contains specific information about an event. You can use variables in Event Rules, e-mail notifications, and commands.

How to use the Variables

In the Variables box, click a property that you want to insert.

For example, if you click Event Time in the left column, the label 'Event Time" and the time will be displayed. If you select %EVENT.TIME% in the right column, the time will be displayed without a text label.

When you create an Event Rule (Used to specify an action to occur when an event takes place and/or a condition is present, e.g., send an e-mail when a file is uploaded.), you can configure an e-mail to be sent when the Event occurs. In the Edit Mail Template dialog box, you can send the default e-mail or you can add one or more variables listed in the Variables box at the bottom of the e-mail. Each of the variables defined in EFT Server is described below; however, not all of the tags described below are available in the e-mail notification. In the e-mail notification, you can specify to display the text along with the value of the variable (e.g., File Creation Date: 8/28/2007), or just the value of the variable (e.g., 8/28/2007).

For example, suppose you configured this e-mail notification:

If you then uploaded a file on August 28, 2007 at 10:01:56, the e-mail would appear similar to the following:

This message was sent to you automatically by GlobalSCAPE EFT Server on the following event: File Uploaded.

Event Time: 28 Aug 07 10:01:56

File Creation Date: 8/28/2007

File Creation Time: 10:01:56

Event Date Stamp: 20070828

Event Time Stamp: 100156

 

In Event Rules and commands with a defined path or filename, do not use variables that add invalid filename characters, such as a slash, colon, parenthesis, etc.

For example, you cannot use %FS.FILE_CREATE_DATE% and %FS.FILE_CREATE_TIME% for file naming, because the output of these variables is DD/MM/YYYY and HH:MM:SS and the forward slash (/) and colon (:) are not valid characters for filenames.

In most cases, the file created date and time is the same as the event triggered time, therefore you can use %EVENT.DATESTAMP% (YYYYMMDD) and %EVENT.TIMESTAMP% (HHMMSS) when renaming files (because they do not use invalid characters), and %FS.FILE_CREATE_DATE% and %FS.FILE_CREATE_TIME% for e-mail notifications.

For example, suppose an OnUpload Event Rule causes an Offload Action that moves myfile.txt to the following path:

C:/Inetpub/EFTRoot/Site1/Usr/jsmith/ %EVENT.DATESTAMP%_%FS.FILE_NAME%


The resulting path is:

C:/Inetpub/EFTRoot/Site1/Usr/jsmith/ 20070728_myfile.txt

Connection Variables

Text Displayed

Variable

Description

Remote IP

%CONNECTION.REMOTE_IP%

Remote IP address used to connect

Local IP

%CONNECTION.LOCAL_IP%

Local IP address used to connect

Local Port

%CONNECTION.LOCAL_PORT%

Local port used to connect

Protocol

%CONNECTION.PROTOCOL%

Protocol used to connect

Using Web Transfer Client

%CONNECTION.USING_WEB_TRANSFER_CLIENT%

Indicates whether the user connected via the Web Transfer client

Event Variables

Text Displayed

Variable

Description

Event Time

%EVENT.TIME%

Date and time that the Event was triggered, e.g., 28 Aug 07 10:01:56
(This variable is not suitable for file naming because of the colons; use %EVENT.DATESTAMP% and %EVENT.TIMESTAMP% instead.)

Event Date

%EVENT.DATESTAMP%

Date that the Event was triggered, e.g., 20070828
(suitable for file naming)

Event Timestamp

%EVENT.TIMESTAMP%

Time that the Event was triggered, e.g., 100156
(suitable for file naming)

Event Name

%EVENT.NAME%

Server-defined name for the Event (e.g., File Renamed)

Event Reason

%EVENT.REASON%

Action completed successfully or Action Failed

Event Full Name

%EVENT.EVENTNAME%

User-defined name for the Event (e.g., My File Renamed Event Rule)

File System Variables

Text Displayed

Variable

Description

Virtual Path

%FS.VIRTUAL_PATH%

Original virtual location of the file

Physical Path

%FS.PATH%

Original physical location of the file

Physical Folder Name

%FS.FOLDER_NAME%

Name of the physical folder

File Name

%FS.FILE_NAME%

Name of the file

File Size

%FS.FILE_SIZE%

Size of the file involved in the Event

File Creation Date

%FS.FILE_CREATE_DATE%

Date the file was created, in the format YYYY/MM/DD, e.g., 8/28/2007 (not suitable for file naming because of the slashes)

File Creation Time

%FS.FILE_CREATE_TIME%

Time the file was created, in the format HH:MM:SS, e.g., 10:01:56 (not suitable for file naming because of the colons)

Virtual Destination Path

%FS.DST_VIRTUAL_PATH%

Virtual destination path of the file involved in the Event

Physical Destination Path

%FS.DST_PATH%

Physical destination path of the file

Physical Destination Folder Name

%FS.DST_FOLDER_NAME%

Physical destination folder

Destination File Name

%FS.DST_FILE_NAME%

Destination file name

Report Content

%FS.REPORT_CONTENT%

Content of the report generated by the Generate Report Action

Report File Name

%FS.REPORT_FILENAME%

Location of generated report. This variable can be used in e-mail notifications to include a link to the new location for the file after a copy/move Action.

Report Name

%FS.REPORT_FILE%

Name of the report generated by the Generate Report Action. This variable can be used in copy/move, PGP, and custom command actions that are executed synchronously (i.e., custom commands that have a failure event defined), but should not be used for custom command actions that are executed asynchronously (i.e., custom commands that do not have a failure event defined.)

In some cases it may be more appropriate to use %FS.REPORT_CONTENT% because this variable represents a copy of the contents of the file rather than a link to the file, which is only good so long as the file exists. For example, since the file will be deleted when EFT Server stops processing the Event Rule, do not use this variable in e-mail notifications; use %FS.REPORT_CONTENT% instead.

Server Variables

Text Displayed

Variable

Description

Server Running

%SERVER.STATUS%

Indicates whether EFT Server service was running when the Event was triggered. (Yes or No)

Log Type

%SERVER.LOG_TYPE%

Either Standard or Verbose, per the setting on the Auditing tab

Log Location

%SERVER.LOG_LOCATION%

Location of the log file

Node Name

%SERVER.NODE_NAME%

Computer name on which the Server is running

Site Variables

Text Displayed

Variable

Description

Account Management URL

%SITE.ACCOUNT_MANAGEMENT_URL%

Site account management URL,
https://
../manageaccount:<port> (if port is not equal to 443)

Site Status

%SITE.STATUS%

Indicates whether the Site was running when the Event was triggered. (Yes or No)

User Variables

Text Displayed

Variable

Description

Full Name

%USER.FULL_NAME%

Full name of the user, if defined on the Details tab

Logon Name

%USER.LOGIN%

Login username of the user

Logon Password

%USER.PASSWORD%

Login password of the user

Groups

%USER.GROUPS%

Groups in which the user is a member

Account Enabled

%USER.ENABLED%

Indicates whether the user account is enabled. (Yes or No)

Settings Level

%USER.SETTINGS_LEVEL%

User Setting Level of the user

Description

%USER.DESCRIPTION%

Description of the user account, as defined on the Main tab

Comment

%USER_COMMENT%

Text in the Comment box, if defined in the Details tab

E-mail Address

%USER.EMAIL%

E-mail address of the user, if defined in the Details tab

Phone Number

%USER.PHONE%

Phone number of the user, if defined in the Details tab

Pager Number

%USER.PAGER%

Pager number of the user, if defined in the Details tab

Fax Number

%USER.FAX%

Fax number of the user, if defined in the Details tab

Home Folder

%USER.HOME_FOLDER%

User's home folder

Home Folder is Root

%USER.HOME_IS_ROOT%

Indicates whether the Treat Home Folder as Root check box is selected. (Yes or No)

Quota Max

%USER.QUOTA_MAX%

Max disk space specified for the user

Quota Used

%USER.QUOTE_USED%

Amount of disk space in use by the user

Invalid login attempts

%USER.INVALID_LOGINS%

Number of invalid login attempts by the user

User can change password

%USER.CAN_CHANGE_PASSWORD%

Indicates whether the user is allowed to change the login password (Yes or No)

Home IP

%USER.HOME_IP

IP address of the user

User can connect using SSL

%USER.ALLOW_SSL%

Indicates whether user is allowed to connect using SSL (Yes or No)

User can connect using FTP

%USER.ALLOW_FTP%

Indicates whether user is allowed to connect using FTP (Yes or No)

User can connect using SFTP

%USER.ALLOW_SFTP%

Indicates whether user is allowed to connect using SFTP (Yes or No)

Last Login Date

%USER.LAST_LOGIN%

Provides the date and time (in the default system locale) the user last logged in to EFT Server

Password Expiration Date

%USER.PASSWORD_EXPIRATION%

Provides the date and time (in the default system locale when the user account is set to expire, or Never
(SeeHS PCI note, below.)

User Must Change Password at Next Login

%USER.RESET_PASSWORD_AT_FIRST_LOGIN%

Indicates whether user is required to reset the account password at first log in (Yes or No).  (See PCI DSS note, below.)

Account Expiration Date

%USER.EXPIRATION_DATE%

Indicates the date (in the default system locale) when the user account expired. Date , or Never
(See PCI DSS note, below.)

Account Locked Out

%USER.IS_LOCKED_OUT%

Indicates whether user account is locked out. Yes or No (See HS PCI note, below.)

 

If the HS-PCI module is disabled (not in Registered or Trial state), No or Never is displayed.

AS2 Variables

Text Displayed

Variable

Value Contained in Variable

AS2 Payload

%AS2.PAYLOAD%

Name of the file (or an array of file names if MA is used) being transferred over the AS2 session

AS2 MDN

%AS2.MDN%

MDN

AS2 Local MIC

%AS2.LOCAL_MIC%

Local AS2 message identification code (MIC)

AS2 Remote MIC

%AS2.REMOTE_MIC%

Remote AS2 message identification code (MIC)

AS2 Message ID

%AS2.MESSAGE_ID%

AS2 message identifier

AS2 Host

%AS2.HOST%

Address of the host being sent to (outbound) or received from (inbound)

AS2 Transaction Error

%AS2.TRANSACTION_ERROR%

Error (if any) in the AS2 transaction

AS2 Transaction Result

%AS2.TRANSACTION_RESULT%

Overall transaction result (In Progress, Failure, or Success) of the in-context AS2 transaction

AS2 Transaction Verbose

%AS2.TRANSACTION_VERBOSE%

Verbose message for the AS2 transaction

AS2 Direction

%AS2.DIRECTION%

Direction of the transfer

AS2 Partner ID

%AS2.PARTNER_ID%

Transaction partner's AS2 ID

AS2 EFT ID

%AS2.EFT_ID%

EFT Server ID used in this transfer

AS2 Content Type

%AS2.CONTENT_TYPE%

Transfer's content type: Application,  EDIFACT, XML, Mutually defined EDI, Binary, Plaintext