ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Workflow.Client.Models Namespace / IJobsManager Interface / GetJobId Method / GetJobId() Method
Example

In This Topic
    GetJobId() Method
    In This Topic
    Gets the job Id associated with the active map view. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Overloads Function GetJobId() As String
    string GetJobId()
    Example
    return await QueuedTask.Run(() => { return WorkflowClientModule.JobsManager.GetJobId(); });
    Get the job Id associated with the active map view
    {
      // Get the job Id associated with the active map view
      var jobManager = WorkflowClientModule.JobsManager;
      jobId = jobManager.GetJobId();
    
      // Use the jobId to identify the job associated with the active map view
    }
    Requirements

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

    ArcGIS Pro version: 3.1 or higher.
    See Also