activities
latest
false
UiPath logo, featuring letters U and I in white

Workflow Activities

Last updated Dec 20, 2024

Get Jobs

UiPath.Core.Activities.GetJobs

Description

Retrieves a list of Orchestrator jobs according to a custom filter, using the Orchestrator API. You can also specify the number of jobs to skip and/or the maximum number of jobs to retrieve. Please note that in order to execute this activity in Studio, the Robot has to be connected to Orchestrator and the Robot role needs the View right on jobs, processes, and environments. The activity runs under the Robot which executes it.

Project Compatibility

Windows - Legacy | Windows | Cross-platform

Cross-platform configuration

  • Orchestrator folder path - The path of the folder from which the jobs should be retrieved, if different from the folder where the process is running. This field only supports string values, with / as the separator to indicate subfolders. For example "Finance/Accounts Payable".
    Note:
    The Folder Path parameter does not work for processes executed by robots in classic folders. Only robots in modern folders have the ability to pass data outside of their folder.
    Relative folder paths are supported in an X-UIPATH-FolderPath-Encoded header, as follows:
    -right: Path starting with / - starts from the root folder of the tree the ambient folder is part of.
    -right: Path starting with . - starts from the ambient folder.
    -right: Path starting with .. - starts one level up in the hierarchy of the ambient folder for each .. in the path (e.g. ../ for one level up, ../../ for two levels up in the hierarchy).

    Note that trailing slashes are not accepted.

  • Filter - Specifies the OData filter to get jobs (i.e. CreationTime gt 2017-01-01T00:03:08.93Z and State eq 'Running'). For more references, check the OData Documentation. This property supports only strings or String variables. When the filter is used instead of an expression, you can configure it using the available wizard.

Windows configuration

  • Orchestrator folder path - The path of the folder from which the jobs should be retrieved, if different from the folder where the process is running. This field only supports string values, with / as the separator to indicate subfolders. For example "Finance/Accounts Payable".
    Note:
    The Folder Path parameter does not work for processes executed by robots in classic folders. Only robots in modern folders have the ability to pass data outside of their folder.
    Relative folder paths are supported in an X-UIPATH-FolderPath-Encoded header, as follows:
    -right: Path starting with / - starts from the root folder of the tree the ambient folder is part of.
    -right: Path starting with . - starts from the ambient folder.
    -right: Path starting with .. - starts one level up in the hierarchy of the ambient folder for each .. in the path (e.g. ../ for one level up, ../../ for two levels up in the hierarchy).

    Note that trailing slashes are not accepted.

  • Filter - Specifies the OData filter to get jobs (i.e. CreationTime gt 2017-01-01T00:03:08.93Z and State eq 'Running'). For more references, check the OData Documentation. This property supports only strings or String variables. Clicking on the field opens the Filter Wizard window.
Advanced options
Misc
  • Skip - Helps you skip the first "n" jobs. This property supports only integers and integer variables.
  • Top - Returns only a specified number of jobs out of the total. The maximum value is 100. This property supports only integers and Integer variables.
  • Timeout (milliseconds) - Specifies the amount of time (in milliseconds) to wait for the activity to run before an error is thrown. The default value is 30000 milliseconds (30 seconds).
  • Continue On Error - Specifies if the automation should continue even when the activity throws an error. This field only supports Boolean values (True, False). The default value is False. As a result, if the field is blank and an error is thrown, the execution of the project stops. If the value is set to True, the execution of the project continues regardless of any error.

Output

  • Jobs - The retrieved jobs, as an IEnumerable<OrchestratorJobs> variable.

Configuring the wizard

The wizard allows you to easily create a filter used to retrieve jobs from Orchestrator.

The following entities are available:

  • Key - The Orchestrator Job Key.

    • Can be set to Equals or Not equals to a specific string or variable.
  • StartTime - The start time of the Orchestrator Job.

    • Can be set to Newer than or Older than a specific date/time/hour.
  • EndTime - The end time of the Orchestrator Job.

    • Can be set to Newer than or Older than a specific date/time/hour.
  • State - The state of the Orchestrator Job.

    • Can be set to Equals or Not equals to one of the following values:
      • Faulted
      • Pending
      • Resumed
      • Running
      • Stopped
      • Stopping
      • Successful
      • Suspended
      • Terminating
  • Priority - The priority of the Orchestrator Job.

    • Can be set to Equals or Not equals to one of the following values:
      • High
      • Low
      • Normal
  • CreationTime - The creation time of the Orchestrator Job.

    • Can be set to Newer than or Older than a specific date/time/hour.
  • ReleaseName

    • Can be set to one of the following options:
      • Contains
      • Ends With
      • Equals
      • Not Contains
      • Not Equals
      • Starts With
docs image

Windows - Legacy configuration

Properties panel
Common
  • Continue On Error - Specifies if the automation should continue even when the activity throws an error. This field only supports Boolean values (True, False). The default value is False. As a result, if the field is blank and an error is thrown, the execution of the project stops. If the value is set to True, the execution of the project continues regardless of any error.
  • DisplayName - The display name of the activity.
  • Timeout (milliseconds) - Specifies the amount of time (in milliseconds) to wait for the activity to run before an error is thrown. The default value is 30000 milliseconds (30 seconds).
Input
  • Filter - Specifies the OData filter to get jobs (i.e. CreationTime gt 2017-01-01T00:03:08.93Z and State eq 'Running'). For more references, check the OData Documentation. This property supports only strings or String variables.
Misc
  • Folder Path - The path of the folder from which the jobs should be retrieved, if different from the folder where the process is running. This field only supports string values, with / as the separator to indicate subfolders. For example "Finance/Accounts Payable".
    Note:
    The Folder Path parameter does not work for processes executed by robots in classic folders. Only robots in modern folders have the ability to pass data outside of their folder.
    Relative folder paths are supported in an X-UIPATH-FolderPath-Encoded header, as follows:
    -right: Path starting with / - starts from the root folder of the tree the ambient folder is part of.
    -right: Path starting with . - starts from the ambient folder.
    -right: Path starting with .. - starts one level up in the hierarchy of the ambient folder for each .. in the path (e.g. ../ for one level up, ../../ for two levels up in the hierarchy).

    Note that trailing slashes are not accepted.

  • Private - If selected, the values of variables and arguments are no longer logged at Verbose level.

Output

  • Jobs - The retrieved jobs, as an IEnumerable<OrchestratorJobs> variable.

Pagination

  • Skip - Helps you skip the first "n" jobs. This property supports only integers and integer variables.
  • Top - Returns only a specified number of jobs out of the total. The maximum value is 100. This property supports only integers and Integer variables.

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.