Sage X3 Services installation

Overview

This document provides information on how to set up and check the server environment for Sage X3 Services. There are two main steps:

  1. Install Sage X3 Services
  2. Configure the database connection in the Syracuse server

You need to install Sage X3 Services to use Mobile Automation (ADC) for distribution.

Important: Use a PowerShell prompt with administrator privilege for all the commands below.

Prerequisites

The Sage X3 Services component requires at least Sage X3 2021 R2 (V12) installation using a Microsoft® SQL Server or an Oracle database.
You must install it on a Windows Server 2016 or 2019 operating system.

The Sage X3 Services component is not available on Linux.

'hostname':'port' combinations used by client devices to reach the application must also be reachable by the X3 Services server and correctly defined in Syracuse.

You need to have one of the following badges associated with your user:

Install Sage X3 Services

Follow these steps to install Sage X3 Services:

  1. Unzip x3-services-M.m.P.b-win.zip in the target folder (example: D:\SageX3\x3-services).
  2. In that folder, edit the xtrem-security.yml file and change the clientId and secret with your own values.
    Note: The secret must have at least 20 characters. Go to the lastpass or passwordsgenerator websites to generate a strong secret.
  3. Set the loginUrl with the public URL of your server.
    loginUrl: https://public-syracuse-server.example.comsyracuse:clientId: create-your-own-client-id-uuidsecret: change-to-use-a-strong-secret-for-your-client-id
    Note: Respect the rules regarding special characters like backslashes in YML files. You can learn more on this topic on the yaml.org website.
  4. In the Syracuse server installation folder, edit the nodelocal.js file to add or edit the etna section without the [...] markers.
    exports.config = {[...]etna: {security: {clientId: "create-your-own-client-id-uuid",secret: "change-to-use-a-strong-secret-for-your-client-id"}}[...]};
  5. Make sure you have the bearer authentication mode enabled in in the list of authorized auth methods in the nodelocal.js file.
    exports.config = {[...]session: {auth: ["oauth2", "bearer"],}[...]};
  6. Open a PowerShell prompt with administrator privilege and uninstall any running Sage X3 Services.
    PS D:\SageX3\x3-services> .\uninstall.ps1
  7. Enter the following command from the target folder.
    PS D:\SageX3\x3-services> .\install.ps1Install complete.Start complete.PS D:\SageX3\x3-services>
    This command creates a Sage X3 Services Windows service. Make sure that the Install complete and Start complete messages return.
  8. Verify that the server is up and running. Run invoke-webrequest http://localhost:8240/ping and make sure that StatusCode : 200 is returned.
    PS D:\SageX3\x3-services> invoke-webrequest http://localhost:8240/pingStatusCode: 200StatusDescription : OKContent : {}RawContent: HTTP/1.1 200 OKVary: Accept-EncodingConnection: keep-aliveKeep-Alive: timeout=5Content-Length: 2Content-Type: application/json; charset=utf-8Date: Wed, 04 Nov 2020 17:01:56 GMTETag: W/"2...Forms : {}Headers : {[Vary, Accept-Encoding], [Connection, keep-alive], [Keep-Alive, timeout=5], [Content-Length, 2]...}Images: {}InputFields : {}Links : {}ParsedHtml: mshtml.HTMLDocumentClassRawContentLength : 2

Change the Sage X3 Services listening port

This step is not mandatory.

By default, port 8240 is used. You can change this by editing the xtrem-config.yml file to add the port parameter with another value. Then restart the service.

Example

port: 8765storage:managedExternal: true

Configure the X3 solution

You need to configure the X3 solution in the Syracuse administration pages for the Sage X3 Services connection to work with your Sage X3 application.

Depending on the Sage X3 application database type, you need to configure an SQL Server service or an Oracle service.

Configure an MS SQL Server service

Go to All > Administration > Administration > Endpoints > SQL Server service and edit the following fields:

FieldDescriptionExample
DescriptionDescription of your service that identifies it uniquelySEED MSSQL service
Instance nameDatabase server host name or IP followed by the instance name if anylocalhost
localhost\myInstance
Database nameName of the database used by the endpointsagex3
UserName of the user to connect to the folderSEED
PasswordPassword for the database folderStr0ng-seed-pwd

Configure an Oracle service

Go to All > Administration > Administration > Endpoints > Oracle service and edit the following fields:

FieldDescriptionExample
DescriptionDescription of your service that identifies it uniquelySEED Oracle service
HostDatabase server host name or IPlocalhost
PortDatabase server port1521
SIDOracle SIDSAGEX3
UserName of the user to connect to the folderSEED
PasswordPassword for the database folderStr0ng-seed-pwd

Update the X3 solution instance

Once you have created the appropriate SQL server or Oracle service, edit the X3 solution to fill in the following fields:

FieldDescriptionExample
Sage X3 Services URLURL of the Sage X3 Services installed in the previous stepshttp://localhost:8240
SQL serviceSelect the SQL server or Oracle service created in the previous stepSEED mssql service

Note: If the Sage X3 Services URL is not displayed, select the Default authoring.

Configure the SOAP pool

You need to configure and start a SOAP pool for the X3 endpoint that will be used by Sage X3 Services integration. For further information, consult the Classic SOAP pools configuration documentation.

Note: If you have multiple SOAP pools for a given endpoint, the first one is used.

Navigate to the handheld application

Important: Restart the Syracuse agent service to reload the nodelocal.js configuration.

Open the handheld page: https://loginUrl/handheld/

Example: https://syracuseserver:8124/handheld/

Resize the handheld application on a PC

Note: This section is relevant only if you open the handheld application on a PC.

You need to size the screen correctly to replicate a width between 3.5 and 6 inches.

  1. In your Chrome browser, go to Customize and control Google Chrome >Install Sage X3.
  2. A confirmation window pops up. Click Install.
  3. The following screen displays.
  4. You can resize the window manually to a size similar to the one of a portable device.
  5. A shortcut has been created on your desktop.

Chrome is the recommended browser for Sage X3 Services because the web view embedded in the web application uses Chrome for scanning and the camera.

Chrome is the only browser that works well if you use a scanner. You can use other browsers such as Edge for demo purposes as long as you do not use the scanner since it is not supported outside of Chrome (Settings and more > Applications > Install the site).

Portable devices configuration

Note: Sage does not provide the devices.

The required operating system is Android version ≥ 8.0.

Screen size:

Scanner: 2D image scanning decoding both 2D (QR code, Datamatrix simple code) and 1D (barcode) codes.The browser required to connect to Sage X3 Services is Chrome version ≥ 45.Types of codes:Handheld scanners:Select or scan the URL on first use and add it to the Home screen to easily access the web application login page the next time.Transactions have been tested using:

For more information, consult the Zebra support documentation.

MC33 limitation: On the physical keyboard, it is possible to select the first letter but not the second and the third. To manage that, you need to scan or use the virtual keyboard.

Add the application to your portable device's home screen

  1. In your Chrome browser, open the handheld page: https://loginUrl/handheld/
    Example: https://syracuseserver:8124/handheld/
  2. Log into the application:
  3. Next to the URL, tap the ellipses (Customize and control Google Chrome).
  4. Select Add to home screen:.
  5. Tap Add to confirm:
  6. The icon displays on your device’s home screen:
  7. You can now tap the icon to log into Mobile Automation directly from your device’s home screen:

Smartphones

Note: Sage does not provide the devices.

Since release 2023 R1/V12.0.33, you can use Mobile Automation on smartphones, respecting the portable devices configuration described above.

Transactions have been tested using:

Add the application to your smartphone's home screen

  1. Get the APK file:
    The component is available at the same time as the release package from the local knowledge base, at the usual place where you retrieve the components of a release.
  2. Install the APK file:

  3. Configure the first server:
    For the first connection, once you accept the Terms and conditions, you can configure the server URL you will use.
  4. Give access to the camera, select the "server" and get started:
  5. The icon displays on your smartphone’s home screen.
  6. You can now tap the icon to log into Mobile Automation directly from your smartphone’s home screen.

Update a previously installed version

Follow these steps to update the Sage X3 Services component:

  1. Save a backup of your previous version.
  2. Open a PowerShell prompt with administrator privilege.
  3. Enter the following command from the target folder:
    PS D:\SageX3\x3-services> .\uninstall.ps1Uninstall complete.
  4. Follow the installation procedure.