@salesforce/b2c-tooling-sdk / operations/jobs / runSystemJob
Function: runSystemJob()
runSystemJob(
instance,spec):Promise<{ }>
Defined in: packages/b2c-tooling-sdk/src/operations/jobs/run-system-job.ts:109
Starts a system job (waiting for completion unless spec.wait === false) and returns the raw OCAPI JobExecution. Throws JobExecutionError (raw) when the job fails, or OcapiDeprecatedError when the only reachable backend is a deprecated OCAPI.
Parameters
instance
spec
Returns
Promise<{ }>