Table of Contents

Managed script examples

These examples use the stored Systems.Core.Script feature. For each example, create an active record with a unique Code and Name, set ScriptLanguage to JavaScript, put the JavaScript in ScriptText, and put its JSON declaration in ParametersSchema. Call the record's Execute action with the shown JSON request body. See Your first managed script for the full HTTP request and response format.

Replace sample IDs with records from your instance. The caller needs the exec scope and the X21 Advanced BPM license. An Execute result does not commit Domain changes; for examples that edit data or files, commit the transaction.