ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Workflow.Client.Models Namespace / IJobsManager Interface / GetJobId Method / GetJobId(String) Method
The map uri of the map
Example

In This Topic
    GetJobId(String) Method
    In This Topic
    Gets the job Id associated with the map. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Overloads Function GetJobId( _
       ByVal mapUri As String _
    ) As String
    string GetJobId( 
       string mapUri
    )

    Parameters

    mapUri
    The map uri of the map
    Example
    return await QueuedTask.Run(() => { Map map = MapView.Active.Map; // Get a reference to a map using the Mapping API (active view, project item, etc.) return WorkflowClientModule.JobsManager.GetJobId(map.Uri); });
    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
    }
    Get the job Id associated with a map
    {
      // Get the job Id associated with a map
      var jobManager = WorkflowClientModule.JobsManager;
      jobId = jobManager.GetJobId(mapUri);
    
      // Use the jobId to identify the job associated with the map
    }
    Requirements

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

    ArcGIS Pro version: 3.1 or higher.
    See Also