Skip to main content

Include Calls

Service Suite currently provides the following calls for including JavaScript files and handling binary data.

include(String: file)

Executes the specified file. Use this call to add libraries. If the same file is included N times, it executes N times. The path is relative to the current file.

readBytes(String: file) → byte[]

Reads a binary file and returns a byte array.

var myStringVar = new java.lang.String(readBytes("{ds}/binary.dat"));
assertEquals("hello world", myStringVar);
var $aJsonString = new java.lang.String(readBytes("{mds}/somejsonfile.json"));
var jsonObj = JSON.parse($aJsonString);

createFolder(String: folder)

Creates a folder with the specified name.


Last updated: October 15, 2026

If you have feedback on this topic, contact documentation@appvance.ai.