Hi ,
Here i am trying to get the details of the process which are under the Shared/FINANCE Folder in orchestrator how to get it through an API, at present i am using the orchestrator Http Request, but it is giving me all processes list.
Hi ,
Here i am trying to get the details of the process which are under the Shared/FINANCE Folder in orchestrator how to get it through an API, at present i am using the orchestrator Http Request, but it is giving me all processes list.
The Processes API returns all folders by default. First get the FolderId (OrganizationUnitId) for the FINANCE folder, then pass it in the request header as X-UiPath-OrganizationUnitId. After that, the API will return only the processes from the Shared/FINANCE folder.
You can use the following endpoint:
https://<orchestrator_url>/odata/Processes?$filter=Folder eq '<folder_path>
Note that the Folder property of the processes in Orchestrator API is case-sensitive, so make sure to use the exact case of the folder name when filtering.
You must pass the Folder (Organization Unit) ID in the request.
Otherwise, Orchestrator returns processes from all folders.
GET /odata/Folders
Find the Id for folder = FINANCE
In your HTTP Request activity, add this header:
X-UIPATH-OrganizationUnitId : <FINANCE_FOLDER_ID>
Then call:
GET /odata/Processes
This will return only processes under Shared/FINANCE
Regards
Gokul
in Orchestrator http request activity you have folder field where if you select the folder you need or give the folder details it would request and get details only from those folders
cheers
@Monali_Vekariya gave the right solution! Just adding quick steps:
Step 1: First get your folder ID
GET /odata/Folders?$filter=DisplayName eq ‘FINANCE’
Copy the Id value you get.
Step 2: In your HTTP Request activity, add this header:
Header name: X-UiPath-OrganizationUnitId
Value: paste the folder ID from step 1
That’s it! Now you’ll get only FINANCE folder processes.
Small tip: Save that folder ID somewhere - you can reuse it instead of calling the Folders API every time.
Hope this helps!
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.