Automation Log Service
The automationlog active variable service gives your scripts access to the log of each automation run. It uses the Automation Log REST service, so the same rules and permissions apply.
Using the service
// Read an item
item = ${automationlog:"6721f0c2a4b9e85d3c0f1a77"}
// Find items
items = find ${automationlog}
// Delete an item, or roll back to its previous version
delete ${automationlog:"6721f0c2a4b9e85d3c0f1a77"}