Skip to content

Commit

Permalink
feat: anonymous apex execution
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhinavKumar-sf committed Sep 4, 2024
1 parent 561b973 commit 2c42a7e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/utils/apex/executor/AnonymousApexRunner.ts
Original file line number Diff line number Diff line change
@@ -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<ExecuteAnonymousResult> {
return org.getConnection().tooling.executeAnonymous(anonymousApex);
}
}

0 comments on commit 2c42a7e

Please sign in to comment.