Add a process in multiple folders not one by one

Hello everyone,

I have a process that I have already published in a specific folder in Orchestrator and I was wondering if it is possible this process to add it to 4 other folders with one action not to do it one by one(each one of them has subfolders inside) Is it possible, and if yes, How can I do it? Maybe there is any API that can do that?

Hi @Xheni_Xhensila ,
Yes, you can upload same package to different folders. But each package in each folder will have its separate process.
But after this I did not understand what you meant to ask please be a little bit more clear of what you want to accomplish.

Thanks & Regards,
Shubham Dutta

In case you need also to auto-update the processes to the latest version, the below calls may help you:

The processes have to be updated manually, either through Orchestrator UI or via API in order for the robots to run the latest version of the package. Reference: Managing processes

You can do it with API:

In bulk

Method: POST

URL: https://ORCHESTRATOR_HOSTNAME/Releases/UiPath.Server.Configuration.OData.UpdateToLatestPackageVersionBulk

Headers:

X-UIPATH-OrganizationUnitId: FOLDER_ID

Content-Type: application/json

Accept: application/json

Body as JSON:

{“releaseIds”:[RELEASE_ID_OF_THE_PACKAGE_1,RELEASE_ID_OF_THE_PACKAGE_2,…],“mergePackageTags”:true}

or

Individually

Method: POST

URL: https://ORCHESTRATOR_HOSTNAME/odata/Releases(RELEASE_ID_OF_THE_PACKAGE)/UiPath.Server.Configuration.OData.UpdateToLatestPackageVersion?mergePackageTags=false

Headers:

X-UIPATH-OrganizationUnitId: FOLDER_ID

Content-Type: application/json

Accept: application/json

You need to make separate Rest API calls for each folder separately.

Example 1:

Method: POST

URL: https://**ORCHESTRATOR_HOSTNAME**/odata/Releases

Headers:

X-UIPATH-OrganizationUnitId: FOLDER_ID_1

Content-Type: application/json

Accept: application/json

Body as JSON:

{"Name":"Test 1","Description":"Add a queue item","ProcessKey":"AddQueueItem","ProcessVersion":"1.0.1-alpha.55","EntryPointId":1207511,"InputArguments":"{}","SpecificPriorityValue":45,"JobPriority":null,"RobotSize":null,"ResourceOverwrites":[],"Tags":[],"ProcessSettings":{"ErrorRecordingEnabled":false,"Duration":40,"Frequency":500,"Quality":100,"AutoStartProcess":false,"AlwaysRunning":false}}

Example 2:

Method: POST

URL: https://**ORCHESTRATOR_HOSTNAME**/odata/Releases

Headers:

X-UIPATH-OrganizationUnitId: FOLDER_ID_2

Content-Type: application/json

Accept: application/json

Body as JSON:

{"Name":"Test 2","Description":"Add a queue item","ProcessKey":"AddQueueItem","ProcessVersion":"1.0.1-alpha.55","EntryPointId":1207511,"InputArguments":"{}","SpecificPriorityValue":45,"JobPriority":null,"RobotSize":null,"ResourceOverwrites":[],"Tags":[],"ProcessSettings":{"ErrorRecordingEnabled":false,"Duration":40,"Frequency":500,"Quality":100,"AutoStartProcess":false,"AlwaysRunning":false}}

Let us know if this helped.

Thank you so much Marian, Ill try and see if it works for me.Thanks a lot

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