--- title: "OSCall" ---
This is generated from the built in components of BuildMaster 2024.0, and may be different than what you have installed (especially if you have extensions); go to [Gear Icon] -> Administration -> Operations within your BuildMaster instance to see exactly what operations are available.

Executes an OtterScript Script stored in a raft.

Script usage:

OSCall(
	Name: <text>,
	[Parameters: <%(key1: value1, ...)>],
	[Variables: <%(key1: value1, ...)>],
	[OutputVariables: <@(text)>]
);

This operation may be prefixed with Core::, although this is a built-in namespace and isn't really necessary.

Arguments:

NameFormatScript UsageUsage Notes
Name (default)
text
Name
The name of the script asset. This argument is required.
Parameters
%(key1: value1, ...)
Parameters
Variables
%(key1: value1, ...)
Variables
Specify parameters to pass in to the script using a map. For example: %(param1: $SomeVariable, param2: @(list,of,items)).
Output variables
@(text)
OutputVariables
Specify variables to capture and set in the calling scope using a list. For example: @(filePath,errorMessage).

Note: Runtime variables you've defined before executing an Invoke operation will not be visible to the invoked script, and variables that you set within the invoked script will not be available.