Skip to content

Commit 2c42a7e

Browse files
feat: anonymous apex execution
1 parent 561b973 commit 2c42a7e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { Org } from '@salesforce/core';
2+
import { ExecuteAnonymousResult } from 'jsforce';
3+
4+
export class AnonymousApexRunner {
5+
public static async run(org: Org, anonymousApex: string): Promise<ExecuteAnonymousResult> {
6+
return org.getConnection().tooling.executeAnonymous(anonymousApex);
7+
}
8+
}

0 commit comments

Comments
 (0)