To identify the server in which the current folder is installed in Sage X3

By | May 9, 2018

adxmac is a function used to identify the server in which the current folder, or one of its reference folder, is installed. It also allows you to obtain the network name of the client (in version 7 mode, the client is the node.js server)

Syntax: 

adxmac(Index)

Examples: 

# What is the application server name

APPSERV_NAME=adxmac(0)

Description:

An index is an integer value expression that can have the following values:

  • ‘-2’ : the client. If using a ‘classic non-browser client’ then this value contains the client name or ip of where the classic client is running. If running a browser client, the web server supporting the browser connection is returned.
  • ‘-1’: the process server where the script is executing.
  • ‘0’ :the application server where the folder being accessed is installed. If the adxmac(0) is equal to blank (“”) then the application is the same as the process server. To return the server id or ip in this case use adxmac(-1). Note, that most X3 scripting routines that require a server id or ip accept adxmac(0) being blank and resolve blank server names.
  • ‘N’: the application server where the parent folder nomap(N) is installed (it is also the folder adxmother(N-1)). If blank then the application server is the same as the process server returned in adxmac(-1).

About Us
Greytrix is a one-stop solution provider for Sage ERP and Sage CRM needs. We provide complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third-party add-on development and implementation expertise.

Greytrix has some unique solutions of Sage X3 integration with Sage CRMSalesforce.com, and Magento eCommerce along with Sage X3 migration from Sage 50 US, Sage Pro, and QuickBooks.  We also offer best-in-class Sage X3 customization and development services to Sage business partners, end users, and Sage PSG worldwide.

For more information on Sage X3 Integration and Services, please contact us at x3@greytrix.com. We will be glad to assist you.