I know that I can filter on state of processes, e.g.: “State eq ‘Running’ or State eq ‘Pending’”
But what about more advanced stuff like: “substring(Robot/Name, 0, 12) eq '”+processName+“'”
I have been looking a little at URI Conventions (OData Version 2.0) · OData - the Best Way to REST but I’m not sure how the logic can be transfered to UiPath Studio.
As an input I have a process name: “Process_0025”
The full name of the process is “Process_0025_Test_ProdEnvironment”
I would like to get an output of the latest executions of this process.
How can I filter to only get a specific process, using a limited input?
Or how can I best get the full process name, including environment, when I only have the first part of the name?
I need the full name to use the start jobs activity.
This is the exact thing I wanting. First 12 characters of Process name needs to be the same as ProcessNameInput. and getting the latest jobs: "substring(Release/Name, 0, 12) eq %27"+ProcessNameInput+"%27&$orderby=CreationTime%20desc"
This is a more generic version of the above. Process name should only contain the same as ProcessNameInput, and also sorted by the latest jobs: "contains(Release/Name,%27"+ProcessNameInput+"%27)&$orderby=CreationTime%20desc"
Get recent jobs from a specific Robot machine: "(contains(Release/Name,%27_%27))%20and%20(contains(Robot/Name,%27"+RobotPCName+"%27))&$orderby=CreationTime%20desc"
Not sure if it is what you’re looking for but lets say you have a ‘Getjobs’ activity where the output variable name is ‘jabRes’ so it will give you the count as the img below: