JavaScript Data Feeds

The JavaScript data feed enables you to run a JavaScript file, and insert that data into the Archer instance if the result of the script is a data set.

The source files can be delimited text files, JSON files, or XML files. You can use an XSLT to transform your data into a consumable format.

SaaS users can upload a self-managed JavaScript Transport file after the "Enable Self-Managed JST" option is enabled in the Archer Instance Manager. Upon upload, each JavaScript file is automatically scanned for external threats. If the scan is successful, you can create a Data Feed and run the JavaScript Transporter Data Feed. If the JavaScript is flagged, review it for potential external threats or contact Archer Technical Support for assistance.

JavaScript Transporter

The JavaScript Transporter can be used to push data from Archer to somewhere else, or it can manipulate data in an external system. To do so, return an empty data set to Archer.

Note: Archer Technical Support is not responsible for data interaction with third party resources.

A JavaScript Transporter data feed can be configured as a standard.

Use the following tasks to add a JavaScript data feed:

JavaScript Transporter Data Feed Logs

In a SaaS environment, the JavaScript Transporter Data Feed logs provide logging capabilities that help you monitor and troubleshoot your scripts efficiently. This transporter captures and displays logs defined within your JavaScript code, but only if they conform to the JavaScript log format. These logs can include details such as transformation steps, validation logic, warnings, and error messages, all of which are added through custom script logging.

You can use the following sample JavaScript code and modify it according to your setup and requirements.

Sample JavaScript code for logging

Viewing JavaScript Transporter Data Feed Logs

To view the logs of a JavaScript Transporter Data Feed, follow these steps:

  1. From the menu, click Admin menu> Integration > Data Feeds.

  2. Find the JavaScript transporter data feed whose logs you wish to view.

  3. In the Actions column of the selected data feed, click Ellipsis > View Run History.

  4. Select the specific run of the JavaScript transporter data feed to see its execution details.

  5. On the Run Details page, click Logs to view the detailed logs.

The user interface (UI) displays only the most recent 1000 logs generated during script execution.

JavaScript transporter data feed log retention

  • Logs are retained for 30 days after execution and are then automatically deleted.

  • During the retention period, you can download logs for archiving, analysis, or troubleshooting.