diff --git a/src/utils/apex/executor/AnonymousApexRunner.ts b/src/utils/apex/executor/AnonymousApexRunner.ts new file mode 100644 index 0000000..c3227f3 --- /dev/null +++ b/src/utils/apex/executor/AnonymousApexRunner.ts @@ -0,0 +1,8 @@ +import { Org } from '@salesforce/core'; +import { ExecuteAnonymousResult } from 'jsforce'; + +export class AnonymousApexRunner { + public static async run(org: Org, anonymousApex: string): Promise { + return org.getConnection().tooling.executeAnonymous(anonymousApex); + } +}