This activity only returns generic info like State, Start Time, End Time, etc.
It should return all values for the Job. At the very least it should return the Id, Key, etc so we have uniquely identifying information for the Job.
This activity only returns generic info like State, Start Time, End Time, etc.
It should return all values for the Job. At the very least it should return the Id, Key, etc so we have uniquely identifying information for the Job.
Hi,
FYI. In my environment (Studio25.10.3 + System.Activities pack 25.10.4), the following works.
ojob.GetType.GetRuntimeProperties().Where(Function(x) x.Name="Id").FirstOrDefault().GetValue(oJob,Nothing)
I agree with you to add property for Id to access it easily.
Regards,
Where is there a documented list of all the properties and how to use them?
For me there is no Key property available:
UiPath.System.Activities 24.10.7
And when I inspect the available properties by looping through GetRuntimeProperties, this is all I get:
Id is helpful for my current needs, but this activity should expose all the same values we’d get back from a Orchestrator HTTP Request - and should have a setting that allows us to specify which values we want, just like an API call.
Another thing…I would expect to be able to use GetProperty to, well, just get the value of a single property. IE currentOrchestratorJob.GetProperty(“Id”) - but that doesn’t work. It’s just blank.
Yes, the old System.Activies package in Version 24.10.X is missing the key property.
In the current version 25.10.X there is a “Key” property available (see screenshot below).
For the older package version reflection is required, as shown in the example code above.
→ UiPath already fixed this issue, but only in the 25.10. version.
Hi,
I confirmed there is no Key in System pack 24.10.7. However, there is information for Id in orchestratorJob instance.
Another thing…I would expect to be able to use GetProperty to, well, just get the value of a single property. IE currentOrchestratorJob.GetProperty(“Id”) - but that doesn’t work. It’s just blank.
Because Id is non-public
![]()
So, it’s necessary to use either of the following expression, for example.
j.GetType().GetRuntimeProperties().Where(Function(x) x.Name="Id").First().GetValue(j,Nothing)
OR
j.GetType().GetProperty("Id",Bindingflags.NonPublic or BindingFlags.Instance).GetValue(j,Nothing)
note: j is OrchestratorJob type
Regards,