Orchestrator HTTP Request - Get all robots

Hi Community

I want to user activity Orchestrator HTTP Request to get the name of all robots in our tenant.
We have several folders in our tenant and each folder has several robots.

When using:
Method GET
Relative Endpoint “odata/Robots”
The result is only all robots in the current folder (that my robot is in) and not robots on all other folders.

I have checked UiPath API Guide and Postman.uipath.rocks but no luck.

For Info: We are using classic folder.
Studio version: 2021.10.5

Would be really appreciated if someone could help with the problem.

Cheers!

こんにちは。

次のHttpリクエストで全てのフォルダ情報を取得します。
odata/Folders

Response

{
      "Key": "-----",
      "DisplayName": "-----",
      "FullyQualifiedName": "-----",
      "FullyQualifiedNameOrderable": "-----",
      "Description": null,
      "ProvisionType": "Automatic",
      "PermissionModel": "FineGrained",
      "ParentId": null,
      "ParentKey": null,
      "IsActive": true,
      "FeedType": "Processes",
      "Id": 1009    <--- folderId 
    },

取得したフォルダ情報を元に、 folderId を引数として全てのフォルダーからロボットの名前を取得してはいかがでしょうか。
odata/Robots/UiPath.Server.Configuration.OData.GetRobotsFromFolder(folderId=1009)

お役にたてば嬉しいです。

1 Like

Thank you for your suggestion.

The following message was shown:
“A valid modern folder id is required for this operation”

As we are using classic folder, is there an option?

返事ありがとうございます。

Orchestratorのバージョンを教えてください。

非推奨のクラシックフォルダを選択しているということでしょうか?

Orchestratorをモダンフォルダとして選択していて、作成したフォルダがクラシックまたはモダンである場合、次の両方のAPIと引数を使用してロボットの名前を取得出来そうですがいかがでしょうか。

・クラシック
API : /odata/Robots
引数: “X-UIPATH-OrganizationUnitId: {folderId}”
ただし、モダンフォルダは “@odata.count”: 0 となる。

・モダンフォルダ
API: /odata​/Robots​/UiPath.Server.Configuration.OData.GetRobotsFromFolder(folderId={folderId})
引数: “X-UIPATH-OrganizationUnitId: {folderId}”
ただし、クラシックフォルダはエラーとなる。400 Undocumented Error:

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