ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Workflow.Models Namespace / JobsManager Class / CreateNewJob Method
The ID of the job type to use when creating the new job
Example Version

CreateNewJob Method
Creates a new job based on a job type template. This method must be called on the MCT. Use QueuedTask.Run
Syntax
public string CreateNewJob( 
   string jobTypeID
)

Parameters

jobTypeID
The ID of the job type to use when creating the new job

Return Value

The string ID of the newly created job
Example
How to create a job
// CreateJob returns an ID of a new job
// it is a passed a valid job type ID as an integer
var wfCon = await WorkflowModule.ConnectAsync();
var jobManager = wfCon.GetManager<JobsManager>();
var jobID = jobManager.CreateNewJob(jobTypeID);
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also