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

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

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3.1 or higher.
See Also