UiPath API call not working in Orchestrator Cloud

Hi, I have a problem.
For some reason when I make a call to the “odata/Folders” endpoint from my UiPath it works (I use the HTTP Orchestrator activity), but when I upload a version of the process to the cloud and run it, it doesn’t bring me anything. The answer from the cloud is this:
{"@odata.context":"https://cloud.uipath.com/cloud/Cloud/orchestrator_/odata/$metadata#Folders","@odata.count":0,"value":[]}

On my PC I get the following:

{"@odata.context": "https://cloud.uipath.com/cloud/Cloud/orchestrator_/odata/$metadata#Folders",
   "@odata.count": 121,
   value: [
     {...}]}

Could you tell me what could be the problem? I couldn’t find any info that really helped me.
It occurs to me that perhaps as the user of the bot and mine are different, maybe that’s why it doesn’t bring it but I’m not sure.

*Btw I don’t put the value in the forum and neither the original URL, because it’s confidential…

From the UiPath Swagger API:

GET/odata/Folders
Gets folders.
OAuth required scopes: OR.Folders or OR.Folders.Read.
Required permissions: (Units.View or SubFolders.View - Gets all folders or only the folders where user has SubFolders.View permission).

From UiPath Documentation on default Robot permissions in Cloud, the robot by default does not have the SubFolders.View permission.

I would attempt to give the robot user for which this is returning 0 results the SubFolders.View permission in Orchestrator, and try running the process again.

If this still does not work, I would compare your access to this user, and see what is different.

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