Getting all processes for a folder

Hej Tech wizards.

i want to get all the processes in a given folder from the orchastrator API

i have tried to get the via “Odata/Processes” but that returns all the processes for all folders, how can i filter out the ones i dont need?

best regards
Nijas Winum Hansen
Tech Apprentice

Hi @NijasHansen1

Check below for your reference

Hope this may help you

Thanks,
Srini

1 Like

[Orchestrator-Building API Requests] Page
you can visit the page and
you view the various options like
top,filter,expand,select,orderby,skip
https://docs.uipath.com/orchestrator/standalone/2022.10/api-guide/building-api-requests
Thanks and Regards

1 Like

I wonder if the EnvironmentName property is what contains folder name if you’re in modern folders.

https://docs.uipath.com/orchestrator/standalone/2022.10/api-guide/processes-requests

Response body

{
  "@odata.context": "{OrchestratorURL}/odata/$metadata#Releases",
  "@odata.count": 1,
  "value": [
    {
      "Key": "01b7cf62-98e0-4a69-9a65-be7514643229",
      "ProcessKey": "all_activities",
      "ProcessVersion": "1.0.6666.26728",
      "IsLatestVersion": false,
      "IsProcessDeleted": false,
      "Description": null,
      "Name": "all_activities_DocEnv",
      "EnvironmentId": 7,
      "EnvironmentName": "DocEnv",
"InputArguments": null,
      "Id": 6,
      "Arguments": null
    }
  ]
}
1 Like

Hey @postwick

it does not tell me the folder in the environtmentName value :frowning:

best regards

Hey @Srini84

this helped me a little, i found out that you need to put the ID in the HTTP request Header under “X-UiPath-FolderPath”, the problem now is that its telling me the folder does not exist or i dont have access to the folder, im logged in as admin so i should have the right auth for it :slight_smile:

ill keep trying

best regards

Hey @Shiva_Nikhil

this helped me to understand the Odata libriary :slight_smile: so thanks :slight_smile:

best regards

Thanks :blush:
Regards