Hello, I’m trying to use “Orchestrator HTTP Request” to get Process Schedules. I tried it using Swagger UI and it worked correctly, I just had to add “X-UiPath-OrganizationUnitId”.
However, when I tried to run it from Studio using the activity, I can’t get it to work correctly. It returns status 200 but the results are empty.
Double-check that you have included the “X-UiPath-OrganizationUnitId” header in your HTTP request in UiPath, just as you did in Swagger UI. This header might be necessary to specify the organization unit from which you want to retrieve schedules.
Verify that the endpoint URL you are using in UiPath matches the one you successfully used in Swagger UI. The URL and any parameters should be identical.
Check how you are handling the response from the HTTP request in UiPath. Ensure that you are correctly parsing the JSON response to extract the data you need.
You can use HTTP Request. It needs to install UiPath.WebAPI.Activities.
X-UiPath-OrganizationUnitId = FolderID
So, Orchestrator HTTP Request no need to use X-UiPath-OrganizationUnitId. It needs to choose the folder name.
X-unit-organizationunitid is nothing but the folder id…
In orchestrator http request you need not add that header…instead choose/give the folder name in the orchestrator folder field…that should suffice for the header part
Thank you, you are correct and it totally makes sense now. I tried adding the folder name in the “Folder Path” field and it works.
Also, I realized that the reason I was getting status 200 but empty results was because without the folder name (And the header I was adding in Json Payload wasn’t doing anything), it was getting the results from the default Personal Workspace folder that didn’t have any triggers, so it was working correctly just for the wrong folder.