ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Workflow.Client.Models Namespace / IJobsManager Interface / GetJob Method
The id of the job.
Indicates whether to return extended and related properties for the job.
Indicates whether to return hold information for the job.
Example

In This Topic
    GetJob Method
    In This Topic
    Get the details of a job by jobId. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Function GetJob( _
       ByVal jobId As String, _
       Optional ByVal extProps As Boolean, _
       Optional ByVal holds As Boolean _
    ) As Job

    Parameters

    jobId
    The id of the job.
    extProps
    Indicates whether to return extended and related properties for the job.
    holds
    Indicates whether to return hold information for the job.
    Example
    return await QueuedTask.Run(() => { var job = WorkflowClientModule.JobsManager.GetJob("123456789", true, true); });
    Get a job
    {
      // Note: QueuedTask is required to call Workflow Manager API methods
      // GetJob returns an existing job
      try
      {
        var jobManager = WorkflowClientModule.JobsManager;
        var job = jobManager.GetJob(jobId);
        // Do something with the job
      }
      catch (NotConnectedException)
      {
        // Not connected to Workflow Manager server, do some error handling
      }
      catch (Exception)
      {
        // Some other exception occurred, do some error handling
      }
      // Use the job object
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.2 or higher.
    See Also