ArcGIS Pro 3.1 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

In This Topic
    CreateNewJob Method
    In This Topic
    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
    )
    Public Function CreateNewJob( _
       ByVal jobTypeID As String _
    ) As String

    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.0 or higher.
    See Also