Is there any way to create folders and Resources via API from an Empty orchrestrator?

Hello

I am making a project derived from the REF to add :

  • the integration of the dispatcher in the REF
  • the execution of program at the launch and at the end of the program
  • management of the notion of TransactionItem group
    -Error management via an email with screen capture
  • logging in a MongoDB database.
  • The “Config” dictionary at two levels, topic and name
    the link :
    https://github.com/renaudfractale/RPA_Template-RHENRY

In order to check the configuration of the Resources, I made a UIPATH program with the activity “Custom Input”:


The program allows to check that the parameters are OK
11/01/2021 11:09:02 => [Debug] The debugging has started for the project : Processus_Check
11/01/2021 11:09:03 => [Info] Process_Check execution started
11/01/2021 11:12:15 => [Info] Mongo DB connection attempt started
11/01/2021 11:12:16 => [Info] MongoDB connection OK
11/01/2021 11:12:16 => [Info] Start updating assets
11/01/2021 11:12:17 => [Info] End of asset update
11/01/2021 11:12:17 => [Info] SMTP Connection Attempted
11/01/2021 11:12:18 => [Info] SMTP Connection Attempt Succeeded
11/01/2021 11:12:18 => [Info] Start SMTP Asset Update
11/01/2021 11:12:19 => [Info] End SMTP Asset Update
11/01/2021 11:12:19 => [Info] Orchestrator API Connection Attempted
11/01/2021 11:12:20 => [Info] API Connection Attempt Succeeded
11/01/2021 11:12:20 => [Info] Start API Asset Update
11/01/2021 11:12:21 => [Info] End API Asset Update
11/01/2021 11:12:21 => [Info] Attempting to connect to the Orchestrator API
11/01/2021 11:12:21 => [Info] Checking Path:C:\Logs
11/01/2021 11:12:21 => [Info] Folder Detection Successful
11/01/2021 11:12:21 => [Info] Start TXT Log Asset Update
11/01/2021 11:12:22 => [Info] End Log TXT Asset Update
11/01/2021 11:12:22 => [Info] Process_Check Completed in: 00:03:18

But the problem I can only update the Resources, not create them.

Is there any way to create folders and Resources via API from an Empty orchrestrator?

Hello @renaudhenry , Welcome to the forums!

I looked up Swagger, there is an API to create folders. But you will have to investigate further on what permissions you need to authorize you to create folders.

One of the options for this API call is to inherit the required permissions from your tenant. From this I understand that if you have the right permissions set up in the tenant, you can use this API to create folders with this PermissionModel option.

image

I hope this helps.

Hi @AndyMenon , In Documentation, it is not possibility to create Folder => Where are you find a APi with create Folder ?

You can pull up the swagger api definitions for your Orchestrator instance and check what Folder API definitions you come up with.

https://docs.uipath.com/orchestrator/reference/api-references

@AndyMenon Thank => I find a solution

url in post : https://platform.uipath.com/{{AccountLogicalName}}/{{TenantName}}/odata/folders
body
{
“DisplayName” : “DisplayName”,
“Description” : “Description”,
“ProvisionType”: “Automatic”,
“PermissionModel”: “FineGrained”,
“ParentId” : null
}

source : https://github.com/UiPath/orchestrator-powershell/blob/develop/UiPath.PowerShell/Cmdlets/AddFolder.cs

Sweet! :slight_smile:

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