Develop > Programming > JavaScript and Service Manager reference > List: JavaScript global methods

List: JavaScript global methods

Global methods are functions that are available to any script as they are not methods of any specific object. You can invoke global methods directly just as you would do with any core JavaScript global functions such as parselnt() or eval().

This is a complete list of all the global methods available in Service Manager.

Global method Description
base64Decode Converts base 64 string data to its original format.
base64Encode Converts binary data to a base 64 string format.
compile Validates the syntax of the specified JavaScript.
doHTTPRequest Issues an HTTP request to a specified URL.
doSOAPRequest Issues an SOAP request to a specified URL.
execute This method performs the specified process or program.

getLog

This method retrieves a logger named according to the value of the name parameter.
help Displays a brief description of a Service Manager-defined JavaScript object.
makeSCWebURL Creates a URL query to the Service Manager Web tier.
print Displays a message in the client Messages view.
Quit Allows JavaScript to abort processing and return a failure return code.
RCtoString Converts a Service Manager global return code value into a localized text string.
readFile Reads data from the local file system.
setAppMessage Defines the message returned in the "message" attribute in the soap response.
stripHtml Takes HTML content and strips out the HTML tags and returns the content as text without the HTML tags.
uncompressFile Expands a .zip file into a specified location.
writeAttachmentToFile Writes a requested attachment record to the local file system.
writeFile Writes data to the local file system.
xmlstring Converts a JavaScript string to an XML string.