I am trying to read Job Id of my bot.
For that, I had loaded the DLL: UiPath.Executor.Core.dll using Nuget Package
But In UIPath version 2019.6.0, It shows below-mentioned error in Screenshot:
Please provide the solution to resolve this or an alternative to get Bot’s unique JobID.
I know this is an old thread, but I figured I would add a current solution. Runtime Activities will help solve this problem.
The following are available:
GetProcessName: Retrieves the name of the process. If running from Studio, this will be the project name. If running via Orchestrator, this will get the process name as defined in Orchestrator.
GetProcessVersion: Retrieves the version of the process (as defined in the process’s project.json file)
GetJobID: Retrieves the unique ID of the process. This job ID also appears in the execution logs.
GetInitiatedBy: Retrieves the means by which the process has been started. Can be StudioPro, StudioX, Assistant, Orchestrator
GetWorkflowFilePath: Retrieves the path of the file that is currently executed.