General
This article describes the Script Editor interface and the use of the Script Library.
Script Editor
Description
The Script Editor is based on the Monaco editor (similar to Visual Studio Code) and provides tools for writing and testing scripts.
For general scripting behavior, see:/hc/en-us/articles/<ARTICLE-ID>-script-engine-overview
Key Components
Script Area
Main workspace for writing code.
Line Numbers
Used for navigation and debugging.
Syntax Highlighting
Improves readability by coloring code elements.
Auto-complete
Provides suggestions for objects, methods, and properties.
Error Markers
Indicates potential syntax issues (not guaranteed to catch all errors).
Editor Tools
- Find
- Find and Replace
- Toggle Comment
- Auto Format Code
Testing
- Scripts can be executed before deployment
- Test data (
transaction,article) is auto-generated - External calls are executed during testing
Use caution when testing scripts that interact with external systems.
For logging and testing behavior, see:/hc/en-us/articles/<ARTICLE-ID>-integrator-specific-features
Script Library
Purpose
The Script Library stores reusable scripts and shared logic.
For best practices on reuse, see:/hc/en-us/articles/<ARTICLE-ID>-best-practices-for-script-development