Python / Orchestrator / Gets Jobs. Copy
Back to Collection Items
import sys
import chilkat
# This example assumes the Chilkat API to have been previously unlocked.
# See Global Unlock Sample for sample code.
http = chilkat.CkHttp()
queryParams = chilkat.CkJsonObject()
queryParams.UpdateString("mandatoryPermissions","enim officia ut oc")
queryParams.UpdateString("mandatoryPermissions","quis ex ullamco sit")
queryParams.UpdateString("atLeastOnePermissions","enim officia ut oc")
queryParams.UpdateString("atLeastOnePermissions","quis ex ullamco sit")
queryParams.UpdateString("$expand","esse sit qui")
queryParams.UpdateString("$filter","esse sit qui")
queryParams.UpdateString("$select","esse sit qui")
queryParams.UpdateString("$orderby","esse sit qui")
queryParams.UpdateInt("$top",12575632)
queryParams.UpdateInt("$skip",12575632)
queryParams.UpdateString("$count","true")
# Adds the "Authorization: Bearer <access_token>" header.
http.put_AuthToken("<access_token>")
http.SetRequestHeader("X-UIPATH-OrganizationUnitId","12575632")
# resp is a CkHttpResponse
resp = http.QuickRequestParams("GET","https://domain.com/odata/Jobs",queryParams)
if (http.get_LastMethodSuccess() == False):
print(http.lastErrorText())
sys.exit()
sbResponseBody = chilkat.CkStringBuilder()
resp.GetBodySb(sbResponseBody)
jResp = chilkat.CkJsonObject()
jResp.LoadSb(sbResponseBody)
jResp.put_EmitCompact(False)
print("Response Body:")
print(jResp.emit())
respStatusCode = resp.get_StatusCode()
print("Response Status Code = " + str(respStatusCode))
if (respStatusCode >= 400):
print("Response Header:")
print(resp.header())
print("Failed.")
sys.exit()
# Sample JSON response:
# (Sample code for parsing the JSON response is shown below)
# {
# "value": [
# {
# "Key": "urn:uuid:be08766e-ac51-bb45-5501-0a3dc5154af2",
# "StartTime": "1968-12-05T22:17:50.256Z",
# "EndTime": "1987-05-29T17:04:27.173Z",
# "State": "Running",
# "JobPriority": "Normal",
# "Robot": {
# "HostingType": "Standard",
# "Name": "ve",
# "Type": "RpaDeveloper",
# "Username": "exercitation et ea",
# "LicenseKey": "elit in",
# "MachineName": "irure Ut mollit dolore",
# "MachineId": -25291783,
# "ExternalName": "laboris commodo dolor do",
# "Description": "culpa eu consequat",
# "ProvisionType": "Automatic",
# "Password": "officia eu ut cupidatat",
# "CredentialStoreId": 68306960,
# "UserId": 31877342,
# "Enabled": true,
# "CredentialType": "Default",
# "Environments": [
# {
# "value": "<Circular reference to #/components/schemas/EnvironmentDto detected>"
# },
# {
# "value": "<Circular reference to #/components/schemas/EnvironmentDto detected>"
# }
# ],
# "RobotEnvironments": "non exercitation ut dolor",
# "ExecutionSettings": {},
# "IsExternalLicensed": false,
# "LimitConcurrentExecution": false,
# "Id": -59332040
# },
# "Release": {
# "Name": "sed in aliquip consequat",
# "ProcessKey": "exercitation",
# "ProcessVersion": "amet",
# "Key": "velit ipsum ut",
# "IsLatestVersion": false,
# "IsProcessDeleted": true,
# "Description": "dolore",
# "EnvironmentId": -41748387,
# "EnvironmentName": "esse culpa",
# "Environment": {
# "Name": "ea dolor",
# "Description": "cillum Duis enim",
# "Robots": [
# {
# "HostingType": "Standard",
# "Name": "magna adip",
# "Type": "Development",
# "Username": "dolore ex",
# "LicenseKey": "nulla veniam dolor proident ipsum",
# "MachineName": "deserunt sed aute reprehenderit",
# "MachineId": 99549561,
# "ExternalName": "ad laboris veniam sint incididunt",
# "Description": "Ut commodo",
# "ProvisionType": "Automatic",
# "Password": "reprehenderit",
# "CredentialStoreId": -86457645,
# "UserId": -62740279,
# "Enabled": false,
# "CredentialType": "Default",
# "Environments": [
# {
# "value": "<Circular reference to #/components/schemas/EnvironmentDto detected>"
# },
# {
# "value": "<Circular reference to #/components/schemas/EnvironmentDto detected>"
# }
# ],
# "RobotEnvironments": "fugiat labore sunt non",
# "ExecutionSettings": {},
# "IsExternalLicensed": false,
# "LimitConcurrentExecution": false,
# "Id": -57032659
# },
# {
# "HostingType": "Standard",
# "Name": "ut",
# "Type": "Studio",
# "Username": "ipsum fugiat",
# "LicenseKey": "laboris",
# "MachineName": "nisi consequat nostrud adipisicing",
# "MachineId": -86957591,
# "ExternalName": "consequat nulla culpa",
# "Description": "quis proident",
# "ProvisionType": "Automatic",
# "Password": "dolor laborum dolore exercitation",
# "CredentialStoreId": -50712714,
# "UserId": -77316487,
# "Enabled": true,
# "CredentialType": "NCipher",
# "Environments": [
# {
# "value": "<Circular reference to #/components/schemas/EnvironmentDto detected>"
# },
# {
# "value": "<Circular reference to #/components/schemas/EnvironmentDto detected>"
# }
# ],
# "RobotEnvironments": "consectetur proident",
# "ExecutionSettings": {},
# "IsExternalLicensed": false,
# "LimitConcurrentExecution": false,
# "Id": 61973728
# }
# ],
# "Type": "Dev",
# "Id": -81564071
# },
# "EntryPointId": 65883382,
# "EntryPoint": {
# "UniqueId": "33d009ac-efb0-a268-39d6-f418e596355f",
# "Path": "ipsum enim est sunt",
# "InputArguments": "quis incididunt sed aliquip laboris",
# "OutputArguments": "labore in a",
# "DataVariation": {
# "Content": {
# "value": "<Error: Too many levels of nesting to fake this schema>"
# },
# "ContentType": {
# "value": "<Error: Too many levels of nesting to fake this schema>"
# },
# "Id": {
# "value": "<Error: Too many levels of nesting to fake this schema>"
# }
# },
# "Id": -88661283
# },
# "InputArguments": "aliqua laborum id reprehenderit irure",
# "ProcessType": "Process",
# "SupportsMultipleEntryPoints": false,
# "RequiresUserInteraction": true,
# "CurrentVersion": {
# "ReleaseId": 74749251,
# "VersionNumber": "et sed in",
# "CreationTime": "2004-08-18T18:18:03.338Z",
# "ReleaseName": "culpa irure eiusmod cillum",
# "Id": -2823220
# },
# "ReleaseVersions": [
# {
# "ReleaseId": 98978237,
# "VersionNumber": "dolor",
# "CreationTime": "1946-05-25T08:32:13.398Z",
# "ReleaseName": "cillum amet do sit",
# "Id": 20089819
# },
# {
# "ReleaseId": -81798741,
# "VersionNumber": "commodo",
# "CreationTime": "1948-07-19T18:02:36.929Z",
# "ReleaseName": "commodo ut",
# "Id": -50835643
# }
# ],
# "Arguments": {
# "Input": "cupidatat nulla dolore laboris",
# "Output": "irure enim"
# },
# "ProcessSettings": {
# "ErrorRecordingEnabled": false,
# "Duration": 21017457,
# "Frequency": -78467124,
# "Quality": -81865886,
# "AutoStartProcess": false,
# "AlwaysRunning": false
# },
# "AutoUpdate": true,
# "FeedId": "b75e256e-424d-3bf4-0039-f805bddcfa1c",
# "JobPriority": "Normal",
# "CreationTime": "1968-10-01T15:48:41.828Z",
# "OrganizationUnitId": 83258498,
# "OrganizationUnitFullyQualifiedName": "deserunt Excepteur velit fugiat ipsum",
# "Id": 97579630
# },
# "Source": "in sed eiusmod officia",
# "SourceType": "Manual",
# "BatchExecutionKey": "0af7775b-abfd-b5da-a616-c1368d064956",
# "Info": "elit qui cupidatat Excepteur irure",
# "CreationTime": "2011-03-20T05:47:21.122Z",
# "StartingScheduleId": -96622782,
# "ReleaseName": "aliqua cillum do",
# "Type": "Attended",
# "InputArguments": "mollit et anim Duis la",
# "OutputArguments": "nisi eu",
# "HostMachineName": "ex nisi est",
# "HasMediaRecorded": true,
# "PersistenceId": "7d168d12-cdee-3fc1-6573-e51cf722927c",
# "ResumeVersion": 80821028,
# "StopStrategy": "Kill",
# "RuntimeType": "Studio",
# "RequiresUserInteraction": true,
# "ReleaseVersionId": -14684718,
# "EntryPointPath": "irure ex",
# "OrganizationUnitId": -47866254,
# "OrganizationUnitFullyQualifiedName": "in dolor adipisicing irure fugiat",
# "Reference": "veniam quis",
# "ProcessType": "TestAutomationProcess",
# "Id": 74454915
# },
# {
# "Key": "urn:uuid:ebc451f5-37de-ca57-6a04-841f283e3db3",
# "StartTime": "2015-06-26T01:29:47.772Z",
# "EndTime": "1975-12-07T06:11:09.831Z",
# "State": "Terminating",
# "JobPriority": "Normal",
# "Robot": {
# "HostingType": "Floating",
# "Name": "reprehenderit mag",
# "Type": "NonProduction",
# "Username": "amet",
# "LicenseKey": "in",
# "MachineName": "veniam sint Duis in",
# "MachineId": -69775421,
# "ExternalName": "sit esse in in",
# "Description": "mollit laboris et adipisicing",
# "ProvisionType": "Manual",
# "Password": "mollit exercitation",
# "CredentialStoreId": -60643044,
# "UserId": 69734890,
# "Enabled": false,
# "CredentialType": "NCipher",
# "Environments": [
# {
# "value": "<Circular reference to #/components/schemas/EnvironmentDto detected>"
# },
# {
# "value": "<Circular reference to #/components/schemas/EnvironmentDto detected>"
# }
# ],
# "RobotEnvironments": "fugiat velit",
# "ExecutionSettings": {},
# "IsExternalLicensed": true,
# "LimitConcurrentExecution": true,
# "Id": -10649011
# },
# "Release": {
# "Name": "exer",
# "ProcessKey": "esse irure sunt",
# "ProcessVersion": "commodo esse",
# "Key": "et",
# "IsLatestVersion": false,
# "IsProcessDeleted": false,
# "Description": "cillum elit sint proident laboris",
# "EnvironmentId": -28668699,
# "EnvironmentName": "fugiat dolor",
# "Environment": {
# "Name": "aliquip in ",
# "Description": "ullamco Ut ipsum",
# "Robots": [
# {
# "HostingType": "Standard",
# "Name": "veniam irure",
# "Type": "Unattended",
# "Username": "exercitation eu",
# "LicenseKey": "eu",
# "MachineName": "laborum non ut",
# "MachineId": -97603824,
# "ExternalName": "do",
# "Description": "commodo",
# "ProvisionType": "Manual",
# "Password": "amet",
# "CredentialStoreId": -46683638,
# "UserId": -79507069,
# "Enabled": false,
# "CredentialType": "SafeNet",
# "Environments": [
# {
# "value": "<Circular reference to #/components/schemas/EnvironmentDto detected>"
# },
# {
# "value": "<Circular reference to #/components/schemas/EnvironmentDto detected>"
# }
# ],
# "RobotEnvironments": "ut nisi cupidatat",
# "ExecutionSettings": {},
# "IsExternalLicensed": true,
# "LimitConcurrentExecution": false,
# "Id": 54910452
# },
# {
# "HostingType": "Standard",
# "Name": "ipsum labor",
# "Type": "TestAutomation",
# "Username": "sed enim anim",
# "LicenseKey": "laboris ut officia id",
# "MachineName": "quis in",
# "MachineId": -90219792,
# "ExternalName": "in pariatur laborum sit",
# "Description": "minim fugiat nisi dolore consectetur",
# "ProvisionType": "Manual",
# "Password": "officia cupidatat",
# "CredentialStoreId": 43407097,
# "UserId": -57075544,
# "Enabled": false,
# "CredentialType": "SafeNet",
# "Environments": [
# {
# "value": "<Circular reference to #/components/schemas/EnvironmentDto detected>"
# },
# {
# "value": "<Circular reference to #/components/schemas/EnvironmentDto detected>"
# }
# ],
# "RobotEnvironments": "Duis proident irure",
# "ExecutionSettings": {},
# "IsExternalLicensed": true,
# "LimitConcurrentExecution": true,
# "Id": -9267781
# }
# ],
# "Type": "Prod",
# "Id": -62000928
# },
# "EntryPointId": -90692421,
# "EntryPoint": {
# "UniqueId": "urn:uuid:d301be4a-2392-bf86-7e46-bb8be011fbf7",
# "Path": "velit minim a",
# "InputArguments": "aliquip eu reprehenderit sit",
# "OutputArguments": "in Lorem sint",
# "DataVariation": {
# "Content": {
# "value": "<Error: Too many levels of nesting to fake this schema>"
# },
# "ContentType": {
# "value": "<Error: Too many levels of nesting to fake this schema>"
# },
# "Id": {
# "value": "<Error: Too many levels of nesting to fake this schema>"
# }
# },
# "Id": -7344118
# },
# "InputArguments": "commodo aute",
# "ProcessType": "TestAutomationProcess",
# "SupportsMultipleEntryPoints": true,
# "RequiresUserInteraction": true,
# "CurrentVersion": {
# "ReleaseId": 81406107,
# "VersionNumber": "id dolor fugiat est",
# "CreationTime": "1985-09-08T00:08:37.146Z",
# "ReleaseName": "amet nisi in et",
# "Id": 18866201
# },
# "ReleaseVersions": [
# {
# "ReleaseId": -18017135,
# "VersionNumber": "laboris",
# "CreationTime": "2010-11-11T00:55:45.791Z",
# "ReleaseName": "s",
# "Id": -24543215
# },
# {
# "ReleaseId": 55664279,
# "VersionNumber": "sint",
# "CreationTime": "2017-11-30T09:41:33.627Z",
# "ReleaseName": "laboris dolore",
# "Id": 98955952
# }
# ],
# "Arguments": {
# "Input": "laboris Ut eiusmod ad occaecat",
# "Output": "dolor ut aliquip Lorem"
# },
# "ProcessSettings": {
# "ErrorRecordingEnabled": true,
# "Duration": -46266930,
# "Frequency": 79484330,
# "Quality": 57996402,
# "AutoStartProcess": false,
# "AlwaysRunning": false
# },
# "AutoUpdate": true,
# "FeedId": "ba07e4b6-b53b-9353-118a-b30abad1721a",
# "JobPriority": "Low",
# "CreationTime": "2018-12-13T23:39:20.742Z",
# "OrganizationUnitId": -70783962,
# "OrganizationUnitFullyQualifiedName": "ullamco dolor",
# "Id": -27097135
# },
# "Source": "elit exercitation",
# "SourceType": "Schedule",
# "BatchExecutionKey": "8ab4e543-f97f-69ee-ff36-3957c3150367",
# "Info": "deserunt ullamco non ",
# "CreationTime": "2017-03-10T11:50:24.671Z",
# "StartingScheduleId": 95117699,
# "ReleaseName": "sunt commodo ex in ut",
# "Type": "Attended",
# "InputArguments": "cupid",
# "OutputArguments": "enim ad",
# "HostMachineName": "elit Lorem",
# "HasMediaRecorded": false,
# "PersistenceId": "urn:uuid:cdafed65-066d-922a-b8e4-414a65fc1ee1",
# "ResumeVersion": 96117442,
# "StopStrategy": "SoftStop",
# "RuntimeType": "CitizenDeveloper",
# "RequiresUserInteraction": true,
# "ReleaseVersionId": 49481835,
# "EntryPointPath": "culpa enim",
# "OrganizationUnitId": 73582213,
# "OrganizationUnitFullyQualifiedName": "in Lorem ex",
# "Reference": "sunt cupidatat id",
# "ProcessType": "TestAutomationProcess",
# "Id": 15658384
# }
# ]
# }
# Sample code for parsing the JSON response...
# Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code
i = 0
count_i = jResp.SizeOfArray("value")
while i < count_i :
jResp.put_I(i)
Key = jResp.stringOf("value[i].Key")
StartTime = jResp.stringOf("value[i].StartTime")
EndTime = jResp.stringOf("value[i].EndTime")
State = jResp.stringOf("value[i].State")
JobPriority = jResp.stringOf("value[i].JobPriority")
HostingType = jResp.stringOf("value[i].Robot.HostingType")
Name = jResp.stringOf("value[i].Robot.Name")
v_Type = jResp.stringOf("value[i].Robot.Type")
Username = jResp.stringOf("value[i].Robot.Username")
LicenseKey = jResp.stringOf("value[i].Robot.LicenseKey")
MachineName = jResp.stringOf("value[i].Robot.MachineName")
MachineId = jResp.IntOf("value[i].Robot.MachineId")
ExternalName = jResp.stringOf("value[i].Robot.ExternalName")
Description = jResp.stringOf("value[i].Robot.Description")
ProvisionType = jResp.stringOf("value[i].Robot.ProvisionType")
Password = jResp.stringOf("value[i].Robot.Password")
CredentialStoreId = jResp.IntOf("value[i].Robot.CredentialStoreId")
UserId = jResp.IntOf("value[i].Robot.UserId")
Enabled = jResp.BoolOf("value[i].Robot.Enabled")
CredentialType = jResp.stringOf("value[i].Robot.CredentialType")
RobotEnvironments = jResp.stringOf("value[i].Robot.RobotEnvironments")
IsExternalLicensed = jResp.BoolOf("value[i].Robot.IsExternalLicensed")
LimitConcurrentExecution = jResp.BoolOf("value[i].Robot.LimitConcurrentExecution")
Id = jResp.IntOf("value[i].Robot.Id")
ReleaseName = jResp.stringOf("value[i].Release.Name")
ProcessKey = jResp.stringOf("value[i].Release.ProcessKey")
ProcessVersion = jResp.stringOf("value[i].Release.ProcessVersion")
ReleaseKey = jResp.stringOf("value[i].Release.Key")
IsLatestVersion = jResp.BoolOf("value[i].Release.IsLatestVersion")
IsProcessDeleted = jResp.BoolOf("value[i].Release.IsProcessDeleted")
ReleaseDescription = jResp.stringOf("value[i].Release.Description")
EnvironmentId = jResp.IntOf("value[i].Release.EnvironmentId")
EnvironmentName = jResp.stringOf("value[i].Release.EnvironmentName")
EnvironmentName = jResp.stringOf("value[i].Release.Environment.Name")
EnvironmentDescription = jResp.stringOf("value[i].Release.Environment.Description")
EnvironmentType = jResp.stringOf("value[i].Release.Environment.Type")
EnvironmentId = jResp.IntOf("value[i].Release.Environment.Id")
EntryPointId = jResp.IntOf("value[i].Release.EntryPointId")
UniqueId = jResp.stringOf("value[i].Release.EntryPoint.UniqueId")
Path = jResp.stringOf("value[i].Release.EntryPoint.Path")
InputArguments = jResp.stringOf("value[i].Release.EntryPoint.InputArguments")
OutputArguments = jResp.stringOf("value[i].Release.EntryPoint.OutputArguments")
Value = jResp.stringOf("value[i].Release.EntryPoint.DataVariation.Content.value")
ContentTypeValue = jResp.stringOf("value[i].Release.EntryPoint.DataVariation.ContentType.value")
IdValue = jResp.stringOf("value[i].Release.EntryPoint.DataVariation.Id.value")
EntryPointId = jResp.IntOf("value[i].Release.EntryPoint.Id")
ReleaseInputArguments = jResp.stringOf("value[i].Release.InputArguments")
ProcessType = jResp.stringOf("value[i].Release.ProcessType")
SupportsMultipleEntryPoints = jResp.BoolOf("value[i].Release.SupportsMultipleEntryPoints")
RequiresUserInteraction = jResp.BoolOf("value[i].Release.RequiresUserInteraction")
ReleaseId = jResp.IntOf("value[i].Release.CurrentVersion.ReleaseId")
VersionNumber = jResp.stringOf("value[i].Release.CurrentVersion.VersionNumber")
CreationTime = jResp.stringOf("value[i].Release.CurrentVersion.CreationTime")
CurrentVersionReleaseName = jResp.stringOf("value[i].Release.CurrentVersion.ReleaseName")
CurrentVersionId = jResp.IntOf("value[i].Release.CurrentVersion.Id")
Input = jResp.stringOf("value[i].Release.Arguments.Input")
Output = jResp.stringOf("value[i].Release.Arguments.Output")
ErrorRecordingEnabled = jResp.BoolOf("value[i].Release.ProcessSettings.ErrorRecordingEnabled")
Duration = jResp.IntOf("value[i].Release.ProcessSettings.Duration")
Frequency = jResp.IntOf("value[i].Release.ProcessSettings.Frequency")
Quality = jResp.IntOf("value[i].Release.ProcessSettings.Quality")
AutoStartProcess = jResp.BoolOf("value[i].Release.ProcessSettings.AutoStartProcess")
AlwaysRunning = jResp.BoolOf("value[i].Release.ProcessSettings.AlwaysRunning")
AutoUpdate = jResp.BoolOf("value[i].Release.AutoUpdate")
FeedId = jResp.stringOf("value[i].Release.FeedId")
ReleaseJobPriority = jResp.stringOf("value[i].Release.JobPriority")
ReleaseCreationTime = jResp.stringOf("value[i].Release.CreationTime")
OrganizationUnitId = jResp.IntOf("value[i].Release.OrganizationUnitId")
OrganizationUnitFullyQualifiedName = jResp.stringOf("value[i].Release.OrganizationUnitFullyQualifiedName")
ReleaseId = jResp.IntOf("value[i].Release.Id")
Source = jResp.stringOf("value[i].Source")
SourceType = jResp.stringOf("value[i].SourceType")
BatchExecutionKey = jResp.stringOf("value[i].BatchExecutionKey")
Info = jResp.stringOf("value[i].Info")
CreationTime = jResp.stringOf("value[i].CreationTime")
StartingScheduleId = jResp.IntOf("value[i].StartingScheduleId")
ReleaseName = jResp.stringOf("value[i].ReleaseName")
v_Type = jResp.stringOf("value[i].Type")
InputArguments = jResp.stringOf("value[i].InputArguments")
OutputArguments = jResp.stringOf("value[i].OutputArguments")
HostMachineName = jResp.stringOf("value[i].HostMachineName")
HasMediaRecorded = jResp.BoolOf("value[i].HasMediaRecorded")
PersistenceId = jResp.stringOf("value[i].PersistenceId")
ResumeVersion = jResp.IntOf("value[i].ResumeVersion")
StopStrategy = jResp.stringOf("value[i].StopStrategy")
RuntimeType = jResp.stringOf("value[i].RuntimeType")
RequiresUserInteraction = jResp.BoolOf("value[i].RequiresUserInteraction")
ReleaseVersionId = jResp.IntOf("value[i].ReleaseVersionId")
EntryPointPath = jResp.stringOf("value[i].EntryPointPath")
OrganizationUnitId = jResp.IntOf("value[i].OrganizationUnitId")
OrganizationUnitFullyQualifiedName = jResp.stringOf("value[i].OrganizationUnitFullyQualifiedName")
Reference = jResp.stringOf("value[i].Reference")
ProcessType = jResp.stringOf("value[i].ProcessType")
Id = jResp.IntOf("value[i].Id")
j = 0
count_j = jResp.SizeOfArray("value[i].Robot.Environments")
while j < count_j :
jResp.put_J(j)
value = jResp.stringOf("value[i].Robot.Environments[j].value")
j = j + 1
j = 0
count_j = jResp.SizeOfArray("value[i].Release.Environment.Robots")
while j < count_j :
jResp.put_J(j)
HostingType = jResp.stringOf("value[i].Release.Environment.Robots[j].HostingType")
Name = jResp.stringOf("value[i].Release.Environment.Robots[j].Name")
v_Type = jResp.stringOf("value[i].Release.Environment.Robots[j].Type")
Username = jResp.stringOf("value[i].Release.Environment.Robots[j].Username")
LicenseKey = jResp.stringOf("value[i].Release.Environment.Robots[j].LicenseKey")
MachineName = jResp.stringOf("value[i].Release.Environment.Robots[j].MachineName")
MachineId = jResp.IntOf("value[i].Release.Environment.Robots[j].MachineId")
ExternalName = jResp.stringOf("value[i].Release.Environment.Robots[j].ExternalName")
Description = jResp.stringOf("value[i].Release.Environment.Robots[j].Description")
ProvisionType = jResp.stringOf("value[i].Release.Environment.Robots[j].ProvisionType")
Password = jResp.stringOf("value[i].Release.Environment.Robots[j].Password")
CredentialStoreId = jResp.IntOf("value[i].Release.Environment.Robots[j].CredentialStoreId")
UserId = jResp.IntOf("value[i].Release.Environment.Robots[j].UserId")
Enabled = jResp.BoolOf("value[i].Release.Environment.Robots[j].Enabled")
CredentialType = jResp.stringOf("value[i].Release.Environment.Robots[j].CredentialType")
RobotEnvironments = jResp.stringOf("value[i].Release.Environment.Robots[j].RobotEnvironments")
IsExternalLicensed = jResp.BoolOf("value[i].Release.Environment.Robots[j].IsExternalLicensed")
LimitConcurrentExecution = jResp.BoolOf("value[i].Release.Environment.Robots[j].LimitConcurrentExecution")
Id = jResp.IntOf("value[i].Release.Environment.Robots[j].Id")
k = 0
count_k = jResp.SizeOfArray("value[i].Release.Environment.Robots[j].Environments")
while k < count_k :
jResp.put_K(k)
value = jResp.stringOf("value[i].Release.Environment.Robots[j].Environments[k].value")
k = k + 1
j = j + 1
j = 0
count_j = jResp.SizeOfArray("value[i].Release.ReleaseVersions")
while j < count_j :
jResp.put_J(j)
ReleaseId = jResp.IntOf("value[i].Release.ReleaseVersions[j].ReleaseId")
VersionNumber = jResp.stringOf("value[i].Release.ReleaseVersions[j].VersionNumber")
CreationTime = jResp.stringOf("value[i].Release.ReleaseVersions[j].CreationTime")
ReleaseName = jResp.stringOf("value[i].Release.ReleaseVersions[j].ReleaseName")
Id = jResp.IntOf("value[i].Release.ReleaseVersions[j].Id")
j = j + 1
i = i + 1
Curl Command
curl -G -d "mandatoryPermissions=enim%20officia%20ut%20oc"
-d "mandatoryPermissions=quis%20ex%20ullamco%20sit"
-d "atLeastOnePermissions=enim%20officia%20ut%20oc"
-d "atLeastOnePermissions=quis%20ex%20ullamco%20sit"
-d "$expand=esse%20sit%20qui"
-d "$filter=esse%20sit%20qui"
-d "$select=esse%20sit%20qui"
-d "$orderby=esse%20sit%20qui"
-d "$top=12575632"
-d "$skip=12575632"
-d "$count=true"
-H "Authorization: Bearer <access_token>"
-H "X-UIPATH-OrganizationUnitId: 12575632"
https://domain.com/odata/Jobs
Postman Collection Item JSON
{
"name": "Gets Jobs. Copy",
"request": {
"method": "GET",
"header": [
{
"description": "Folder/OrganizationUnit Id",
"key": "X-UIPATH-OrganizationUnitId",
"value": "12575632"
}
],
"url": {
"raw": "{{baseUrl}}/odata/Jobs?mandatoryPermissions=enim officia ut oc&mandatoryPermissions=quis ex ullamco sit&atLeastOnePermissions=enim officia ut oc&atLeastOnePermissions=quis ex ullamco sit&$expand=esse sit qui&$filter=esse sit qui&$select=esse sit qui&$orderby=esse sit qui&$top=12575632&$skip=12575632&$count=true",
"host": [
"{{baseUrl}}"
],
"path": [
"odata",
"Jobs"
],
"query": [
{
"key": "mandatoryPermissions",
"value": "enim officia ut oc",
"description": "If in a cross-folder scenario, these represent the additional permissions\r\n required in the folders the data is retrieved from; all permissions in this set must be met"
},
{
"key": "mandatoryPermissions",
"value": "quis ex ullamco sit",
"description": "If in a cross-folder scenario, these represent the additional permissions\r\n required in the folders the data is retrieved from; all permissions in this set must be met"
},
{
"key": "atLeastOnePermissions",
"value": "enim officia ut oc",
"description": "If in a cross-folder scenario, these represent the additional permissions\r\n required in the folders the data is retrieved from; at least one permission in this set must be met"
},
{
"key": "atLeastOnePermissions",
"value": "quis ex ullamco sit",
"description": "If in a cross-folder scenario, these represent the additional permissions\r\n required in the folders the data is retrieved from; at least one permission in this set must be met"
},
{
"key": "$expand",
"value": "esse sit qui",
"description": "Indicates the related entities to be represented inline. The maximum depth is 2."
},
{
"key": "$filter",
"value": "esse sit qui",
"description": "Restricts the set of items returned. The maximum number of expressions is 100."
},
{
"key": "$select",
"value": "esse sit qui",
"description": "Limits the properties returned in the result."
},
{
"key": "$orderby",
"value": "esse sit qui",
"description": "Specifies the order in which items are returned. The maximum number of expressions is 5."
},
{
"key": "$top",
"value": "12575632",
"description": "Limits the number of items returned from a collection. The maximum value is 1000."
},
{
"key": "$skip",
"value": "12575632",
"description": "Excludes the specified number of items of the queried collection from the result."
},
{
"key": "$count",
"value": "true",
"description": "Indicates whether the total count of items within a collection are returned in the result."
}
]
},
"description": "OAuth required scopes: OR.Jobs or OR.Jobs.Read.\r\n\r\nRequired permissions: Jobs.View."
},
"response": [
{
"name": "Success",
"originalRequest": {
"method": "GET",
"header": [
{
"description": "Folder/OrganizationUnit Id",
"key": "X-UIPATH-OrganizationUnitId",
"value": "12575632"
}
],
"url": {
"raw": "{{baseUrl}}/odata/Jobs?mandatoryPermissions=eiusmod officia pariatur&mandatoryPermissions=amet eiusmod nulla dolore&atLeastOnePermissions=eiusmod officia pariatur&atLeastOnePermissions=amet eiusmod nulla dolore&$expand=esse sit qui&$filter=esse sit qui&$select=esse sit qui&$orderby=esse sit qui&$top=12575632&$skip=12575632&$count=true",
"host": [
"{{baseUrl}}"
],
"path": [
"odata",
"Jobs"
],
"query": [
{
"key": "mandatoryPermissions",
"value": "eiusmod officia pariatur"
},
{
"key": "mandatoryPermissions",
"value": "amet eiusmod nulla dolore"
},
{
"key": "atLeastOnePermissions",
"value": "eiusmod officia pariatur"
},
{
"key": "atLeastOnePermissions",
"value": "amet eiusmod nulla dolore"
},
{
"key": "$expand",
"value": "esse sit qui"
},
{
"key": "$filter",
"value": "esse sit qui"
},
{
"key": "$select",
"value": "esse sit qui"
},
{
"key": "$orderby",
"value": "esse sit qui"
},
{
"key": "$top",
"value": "12575632"
},
{
"key": "$skip",
"value": "12575632"
},
{
"key": "$count",
"value": "true"
}
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"value\": [\n {\n \"Key\": \"urn:uuid:be08766e-ac51-bb45-5501-0a3dc5154af2\",\n \"StartTime\": \"1968-12-05T22:17:50.256Z\",\n \"EndTime\": \"1987-05-29T17:04:27.173Z\",\n \"State\": \"Running\",\n \"JobPriority\": \"Normal\",\n \"Robot\": {\n \"HostingType\": \"Standard\",\n \"Name\": \"ve\",\n \"Type\": \"RpaDeveloper\",\n \"Username\": \"exercitation et ea\",\n \"LicenseKey\": \"elit in\",\n \"MachineName\": \"irure Ut mollit dolore\",\n \"MachineId\": -25291783,\n \"ExternalName\": \"laboris commodo dolor do\",\n \"Description\": \"culpa eu consequat\",\n \"ProvisionType\": \"Automatic\",\n \"Password\": \"officia eu ut cupidatat\",\n \"CredentialStoreId\": 68306960,\n \"UserId\": 31877342,\n \"Enabled\": true,\n \"CredentialType\": \"Default\",\n \"Environments\": [\n {\n \"value\": \"<Circular reference to #/components/schemas/EnvironmentDto detected>\"\n },\n {\n \"value\": \"<Circular reference to #/components/schemas/EnvironmentDto detected>\"\n }\n ],\n \"RobotEnvironments\": \"non exercitation ut dolor\",\n \"ExecutionSettings\": {},\n \"IsExternalLicensed\": false,\n \"LimitConcurrentExecution\": false,\n \"Id\": -59332040\n },\n \"Release\": {\n \"Name\": \"sed in aliquip consequat\",\n \"ProcessKey\": \"exercitation\",\n \"ProcessVersion\": \"amet\",\n \"Key\": \"velit ipsum ut\",\n \"IsLatestVersion\": false,\n \"IsProcessDeleted\": true,\n \"Description\": \"dolore\",\n \"EnvironmentId\": -41748387,\n \"EnvironmentName\": \"esse culpa\",\n \"Environment\": {\n \"Name\": \"ea dolor\",\n \"Description\": \"cillum Duis enim\",\n \"Robots\": [\n {\n \"HostingType\": \"Standard\",\n \"Name\": \"magna adip\",\n \"Type\": \"Development\",\n \"Username\": \"dolore ex\",\n \"LicenseKey\": \"nulla veniam dolor proident ipsum\",\n \"MachineName\": \"deserunt sed aute reprehenderit\",\n \"MachineId\": 99549561,\n \"ExternalName\": \"ad laboris veniam sint incididunt\",\n \"Description\": \"Ut commodo\",\n \"ProvisionType\": \"Automatic\",\n \"Password\": \"reprehenderit\",\n \"CredentialStoreId\": -86457645,\n \"UserId\": -62740279,\n \"Enabled\": false,\n \"CredentialType\": \"Default\",\n \"Environments\": [\n {\n \"value\": \"<Circular reference to #/components/schemas/EnvironmentDto detected>\"\n },\n {\n \"value\": \"<Circular reference to #/components/schemas/EnvironmentDto detected>\"\n }\n ],\n \"RobotEnvironments\": \"fugiat labore sunt non\",\n \"ExecutionSettings\": {},\n \"IsExternalLicensed\": false,\n \"LimitConcurrentExecution\": false,\n \"Id\": -57032659\n },\n {\n \"HostingType\": \"Standard\",\n \"Name\": \"ut\",\n \"Type\": \"Studio\",\n \"Username\": \"ipsum fugiat\",\n \"LicenseKey\": \"laboris\",\n \"MachineName\": \"nisi consequat nostrud adipisicing\",\n \"MachineId\": -86957591,\n \"ExternalName\": \"consequat nulla culpa\",\n \"Description\": \"quis proident\",\n \"ProvisionType\": \"Automatic\",\n \"Password\": \"dolor laborum dolore exercitation\",\n \"CredentialStoreId\": -50712714,\n \"UserId\": -77316487,\n \"Enabled\": true,\n \"CredentialType\": \"NCipher\",\n \"Environments\": [\n {\n \"value\": \"<Circular reference to #/components/schemas/EnvironmentDto detected>\"\n },\n {\n \"value\": \"<Circular reference to #/components/schemas/EnvironmentDto detected>\"\n }\n ],\n \"RobotEnvironments\": \"consectetur proident\",\n \"ExecutionSettings\": {},\n \"IsExternalLicensed\": false,\n \"LimitConcurrentExecution\": false,\n \"Id\": 61973728\n }\n ],\n \"Type\": \"Dev\",\n \"Id\": -81564071\n },\n \"EntryPointId\": 65883382,\n \"EntryPoint\": {\n \"UniqueId\": \"33d009ac-efb0-a268-39d6-f418e596355f\",\n \"Path\": \"ipsum enim est sunt\",\n \"InputArguments\": \"quis incididunt sed aliquip laboris\",\n \"OutputArguments\": \"labore in a\",\n \"DataVariation\": {\n \"Content\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ContentType\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Id\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n }\n },\n \"Id\": -88661283\n },\n \"InputArguments\": \"aliqua laborum id reprehenderit irure\",\n \"ProcessType\": \"Process\",\n \"SupportsMultipleEntryPoints\": false,\n \"RequiresUserInteraction\": true,\n \"CurrentVersion\": {\n \"ReleaseId\": 74749251,\n \"VersionNumber\": \"et sed in\",\n \"CreationTime\": \"2004-08-18T18:18:03.338Z\",\n \"ReleaseName\": \"culpa irure eiusmod cillum\",\n \"Id\": -2823220\n },\n \"ReleaseVersions\": [\n {\n \"ReleaseId\": 98978237,\n \"VersionNumber\": \"dolor\",\n \"CreationTime\": \"1946-05-25T08:32:13.398Z\",\n \"ReleaseName\": \"cillum amet do sit\",\n \"Id\": 20089819\n },\n {\n \"ReleaseId\": -81798741,\n \"VersionNumber\": \"commodo\",\n \"CreationTime\": \"1948-07-19T18:02:36.929Z\",\n \"ReleaseName\": \"commodo ut\",\n \"Id\": -50835643\n }\n ],\n \"Arguments\": {\n \"Input\": \"cupidatat nulla dolore laboris\",\n \"Output\": \"irure enim\"\n },\n \"ProcessSettings\": {\n \"ErrorRecordingEnabled\": false,\n \"Duration\": 21017457,\n \"Frequency\": -78467124,\n \"Quality\": -81865886,\n \"AutoStartProcess\": false,\n \"AlwaysRunning\": false\n },\n \"AutoUpdate\": true,\n \"FeedId\": \"b75e256e-424d-3bf4-0039-f805bddcfa1c\",\n \"JobPriority\": \"Normal\",\n \"CreationTime\": \"1968-10-01T15:48:41.828Z\",\n \"OrganizationUnitId\": 83258498,\n \"OrganizationUnitFullyQualifiedName\": \"deserunt Excepteur velit fugiat ipsum\",\n \"Id\": 97579630\n },\n \"Source\": \"in sed eiusmod officia\",\n \"SourceType\": \"Manual\",\n \"BatchExecutionKey\": \"0af7775b-abfd-b5da-a616-c1368d064956\",\n \"Info\": \"elit qui cupidatat Excepteur irure\",\n \"CreationTime\": \"2011-03-20T05:47:21.122Z\",\n \"StartingScheduleId\": -96622782,\n \"ReleaseName\": \"aliqua cillum do\",\n \"Type\": \"Attended\",\n \"InputArguments\": \"mollit et anim Duis la\",\n \"OutputArguments\": \"nisi eu\",\n \"HostMachineName\": \"ex nisi est\",\n \"HasMediaRecorded\": true,\n \"PersistenceId\": \"7d168d12-cdee-3fc1-6573-e51cf722927c\",\n \"ResumeVersion\": 80821028,\n \"StopStrategy\": \"Kill\",\n \"RuntimeType\": \"Studio\",\n \"RequiresUserInteraction\": true,\n \"ReleaseVersionId\": -14684718,\n \"EntryPointPath\": \"irure ex\",\n \"OrganizationUnitId\": -47866254,\n \"OrganizationUnitFullyQualifiedName\": \"in dolor adipisicing irure fugiat\",\n \"Reference\": \"veniam quis\",\n \"ProcessType\": \"TestAutomationProcess\",\n \"Id\": 74454915\n },\n {\n \"Key\": \"urn:uuid:ebc451f5-37de-ca57-6a04-841f283e3db3\",\n \"StartTime\": \"2015-06-26T01:29:47.772Z\",\n \"EndTime\": \"1975-12-07T06:11:09.831Z\",\n \"State\": \"Terminating\",\n \"JobPriority\": \"Normal\",\n \"Robot\": {\n \"HostingType\": \"Floating\",\n \"Name\": \"reprehenderit mag\",\n \"Type\": \"NonProduction\",\n \"Username\": \"amet\",\n \"LicenseKey\": \"in\",\n \"MachineName\": \"veniam sint Duis in\",\n \"MachineId\": -69775421,\n \"ExternalName\": \"sit esse in in\",\n \"Description\": \"mollit laboris et adipisicing\",\n \"ProvisionType\": \"Manual\",\n \"Password\": \"mollit exercitation\",\n \"CredentialStoreId\": -60643044,\n \"UserId\": 69734890,\n \"Enabled\": false,\n \"CredentialType\": \"NCipher\",\n \"Environments\": [\n {\n \"value\": \"<Circular reference to #/components/schemas/EnvironmentDto detected>\"\n },\n {\n \"value\": \"<Circular reference to #/components/schemas/EnvironmentDto detected>\"\n }\n ],\n \"RobotEnvironments\": \"fugiat velit\",\n \"ExecutionSettings\": {},\n \"IsExternalLicensed\": true,\n \"LimitConcurrentExecution\": true,\n \"Id\": -10649011\n },\n \"Release\": {\n \"Name\": \"exer\",\n \"ProcessKey\": \"esse irure sunt\",\n \"ProcessVersion\": \"commodo esse\",\n \"Key\": \"et\",\n \"IsLatestVersion\": false,\n \"IsProcessDeleted\": false,\n \"Description\": \"cillum elit sint proident laboris\",\n \"EnvironmentId\": -28668699,\n \"EnvironmentName\": \"fugiat dolor\",\n \"Environment\": {\n \"Name\": \"aliquip in \",\n \"Description\": \"ullamco Ut ipsum\",\n \"Robots\": [\n {\n \"HostingType\": \"Standard\",\n \"Name\": \"veniam irure\",\n \"Type\": \"Unattended\",\n \"Username\": \"exercitation eu\",\n \"LicenseKey\": \"eu\",\n \"MachineName\": \"laborum non ut\",\n \"MachineId\": -97603824,\n \"ExternalName\": \"do\",\n \"Description\": \"commodo\",\n \"ProvisionType\": \"Manual\",\n \"Password\": \"amet\",\n \"CredentialStoreId\": -46683638,\n \"UserId\": -79507069,\n \"Enabled\": false,\n \"CredentialType\": \"SafeNet\",\n \"Environments\": [\n {\n \"value\": \"<Circular reference to #/components/schemas/EnvironmentDto detected>\"\n },\n {\n \"value\": \"<Circular reference to #/components/schemas/EnvironmentDto detected>\"\n }\n ],\n \"RobotEnvironments\": \"ut nisi cupidatat\",\n \"ExecutionSettings\": {},\n \"IsExternalLicensed\": true,\n \"LimitConcurrentExecution\": false,\n \"Id\": 54910452\n },\n {\n \"HostingType\": \"Standard\",\n \"Name\": \"ipsum labor\",\n \"Type\": \"TestAutomation\",\n \"Username\": \"sed enim anim\",\n \"LicenseKey\": \"laboris ut officia id\",\n \"MachineName\": \"quis in\",\n \"MachineId\": -90219792,\n \"ExternalName\": \"in pariatur laborum sit\",\n \"Description\": \"minim fugiat nisi dolore consectetur\",\n \"ProvisionType\": \"Manual\",\n \"Password\": \"officia cupidatat\",\n \"CredentialStoreId\": 43407097,\n \"UserId\": -57075544,\n \"Enabled\": false,\n \"CredentialType\": \"SafeNet\",\n \"Environments\": [\n {\n \"value\": \"<Circular reference to #/components/schemas/EnvironmentDto detected>\"\n },\n {\n \"value\": \"<Circular reference to #/components/schemas/EnvironmentDto detected>\"\n }\n ],\n \"RobotEnvironments\": \"Duis proident irure\",\n \"ExecutionSettings\": {},\n \"IsExternalLicensed\": true,\n \"LimitConcurrentExecution\": true,\n \"Id\": -9267781\n }\n ],\n \"Type\": \"Prod\",\n \"Id\": -62000928\n },\n \"EntryPointId\": -90692421,\n \"EntryPoint\": {\n \"UniqueId\": \"urn:uuid:d301be4a-2392-bf86-7e46-bb8be011fbf7\",\n \"Path\": \"velit minim a\",\n \"InputArguments\": \"aliquip eu reprehenderit sit\",\n \"OutputArguments\": \"in Lorem sint\",\n \"DataVariation\": {\n \"Content\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ContentType\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Id\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n }\n },\n \"Id\": -7344118\n },\n \"InputArguments\": \"commodo aute\",\n \"ProcessType\": \"TestAutomationProcess\",\n \"SupportsMultipleEntryPoints\": true,\n \"RequiresUserInteraction\": true,\n \"CurrentVersion\": {\n \"ReleaseId\": 81406107,\n \"VersionNumber\": \"id dolor fugiat est\",\n \"CreationTime\": \"1985-09-08T00:08:37.146Z\",\n \"ReleaseName\": \"amet nisi in et\",\n \"Id\": 18866201\n },\n \"ReleaseVersions\": [\n {\n \"ReleaseId\": -18017135,\n \"VersionNumber\": \"laboris\",\n \"CreationTime\": \"2010-11-11T00:55:45.791Z\",\n \"ReleaseName\": \"s\",\n \"Id\": -24543215\n },\n {\n \"ReleaseId\": 55664279,\n \"VersionNumber\": \"sint\",\n \"CreationTime\": \"2017-11-30T09:41:33.627Z\",\n \"ReleaseName\": \"laboris dolore\",\n \"Id\": 98955952\n }\n ],\n \"Arguments\": {\n \"Input\": \"laboris Ut eiusmod ad occaecat\",\n \"Output\": \"dolor ut aliquip Lorem\"\n },\n \"ProcessSettings\": {\n \"ErrorRecordingEnabled\": true,\n \"Duration\": -46266930,\n \"Frequency\": 79484330,\n \"Quality\": 57996402,\n \"AutoStartProcess\": false,\n \"AlwaysRunning\": false\n },\n \"AutoUpdate\": true,\n \"FeedId\": \"ba07e4b6-b53b-9353-118a-b30abad1721a\",\n \"JobPriority\": \"Low\",\n \"CreationTime\": \"2018-12-13T23:39:20.742Z\",\n \"OrganizationUnitId\": -70783962,\n \"OrganizationUnitFullyQualifiedName\": \"ullamco dolor\",\n \"Id\": -27097135\n },\n \"Source\": \"elit exercitation\",\n \"SourceType\": \"Schedule\",\n \"BatchExecutionKey\": \"8ab4e543-f97f-69ee-ff36-3957c3150367\",\n \"Info\": \"deserunt ullamco non \",\n \"CreationTime\": \"2017-03-10T11:50:24.671Z\",\n \"StartingScheduleId\": 95117699,\n \"ReleaseName\": \"sunt commodo ex in ut\",\n \"Type\": \"Attended\",\n \"InputArguments\": \"cupid\",\n \"OutputArguments\": \"enim ad\",\n \"HostMachineName\": \"elit Lorem\",\n \"HasMediaRecorded\": false,\n \"PersistenceId\": \"urn:uuid:cdafed65-066d-922a-b8e4-414a65fc1ee1\",\n \"ResumeVersion\": 96117442,\n \"StopStrategy\": \"SoftStop\",\n \"RuntimeType\": \"CitizenDeveloper\",\n \"RequiresUserInteraction\": true,\n \"ReleaseVersionId\": 49481835,\n \"EntryPointPath\": \"culpa enim\",\n \"OrganizationUnitId\": 73582213,\n \"OrganizationUnitFullyQualifiedName\": \"in Lorem ex\",\n \"Reference\": \"sunt cupidatat id\",\n \"ProcessType\": \"TestAutomationProcess\",\n \"Id\": 15658384\n }\n ]\n}"
}
]
}