Zum Inhalt springen
Kitbay

platform-apex-anonymous-run

Apache-2.0Aktualisiert am 6. Nov. 20261.156GitHub-Sterne

A Salesforce skill for running anonymous Apex against a connected org, from an .apex file or a pasted snippet.

Was der Skill vermittelt

A Salesforce skill for running anonymous Apex against a connected org, from an .apex file or a pasted snippet. The agent identifies the target org, sets up trace flags so useful logs are captured, writes snippets to a temporary file, wraps the code in a savepoint and rollback, runs it with the sf CLI, parses the JSON response and shows the debug log and any errors. The skill points out that anonymous Apex can change data and warns before running in a production org. Writing Apex classes, running unit tests and analysing logs are left to other skills.

Funktionen

  • Run anonymous Apex from a file or snippet
  • Capture and show the debug log
  • Wrap scripts in a savepoint and rollback
  • Warn before running against production