ScriptID()
ts
function ScriptID(): string;Returns the unique ID of the script currently being executed.
NOTE
Each script in Syncplify Server! is assigned a unique ID. This can be useful for logging, debugging, or correlating events across different parts of your automation.
Example
ts
{
var sid = ScriptID();
Log("Current script ID: " + sid);
// You can use the script ID to track execution in logs or for debugging
}TIP
Script IDs can be found in logs and are helpful when troubleshooting or analyzing script execution history.
