Need to get the Workflow Job information that activated the AddIn tool. Specifically the JobID. Where to get this information from the AddIn code (C#)?
Solved! Go to Solution.
Add reference to ArcGIS.Desktop.Workflow.dll ArcGIS.Desktop.Workflow.Client.dll from ArcGIS Pro install Extensions directory.
var jobsManager = WorkflowClientModule.JobsManager;
var jobID = jobsManager.GetJobId();
Add reference to ArcGIS.Desktop.Workflow.dll ArcGIS.Desktop.Workflow.Client.dll from ArcGIS Pro install Extensions directory.
var jobsManager = WorkflowClientModule.JobsManager;
var jobID = jobsManager.GetJobId();