Need to understand how Orchestrator Http Request activity can be used in modern folders/sub folders

Hi,

I am working on a code to get the latest log from cloud orchestrator for all the BOTs connected to our tenant. We use modern folders and multiple Robots are running in those folders.
When I used orchestrator http activity request to get logs, filtered by Robot ID, it returned the log of another Robot in that folder. I also tried filtering by MachineName, but that did not work either.

Why is the filter not working within the subfolders? Is it something not supported by UiPath activity?

I tried using the plain Http Request activity to get the access token and then get the logs, however I do not have the authorization to do that, so would want to get it done using ‘Orchestrator http Request’ activity.

I am using this endpoint :

Are you using the Cloud Orchestrator?
If yes, you can get a Personal Access token (instead of Bearer token) for Orchestrator API Access and retry.

https://cloud.uipath.com/YOUR_ORG_NAME/portal_/profile/personal-access-token

Hi @K_B_Sushmitha

Yes you can perform requests at the sub folder levels

For that your folder name has to be like below:

Main folder/sub folder

You’re going to have to first get a list of all folders then loop through the folders and collect the data folder by folder. It’s one of the maddening things about modern folders.

Hi @postwick , I am getting the data folder by folder. I am not facing issues getting data from folder when i use ‘Orchestrator http request’ activity, however, I am not able to get the logs from a folder specific to BOT.
Ex:
In my folder Default/My Folder, I have 10 Robots running. I need the latest log from all 10 BOTs. Instead, even though I have put a filter(based on Robot ID) to get the details, I am getting logs from a single random robot from that folder.

This is for the ‘https request’ activity and not ‘Orchestrator https request’ activity right? What are the headers/parameters that i need to add? I want to try this out. Can you please let me know the properties to be updated?

I checked and it seems PAT is not available for SAML users. So i don’t think i can use it @marian.platonov

But you can invite a local dummy user that is admin with allow basic authentication and work with that user.

Isn’t there a way to get the ‘orchestrator http request’ activity to work for my issue? Since it does not need authorization.

I just tried this Relative Endpoint for Orchestrator HTTP Request activity, and it is working.

"/odata/RobotLogs?$top=2&$filter=((Level%20ge%20%270%27) and (RobotName eq 'username@test.com-unattended'))&$orderby=TimeStamp%20desc"

Make sure that you are filtering by RobotName.

1 Like

This worked. Thank you @marian.platonov :smile:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.