Unable to add Bulk Queue Items using Orchestrator API

Hi Community,

I want to create bulk queue items using cloud orchestrator but unable to create that. Can anyone help me to figure this out.

I am able to create single queue item but not multiple items at the same time.

Hello @Atul_Singh2 ,

Perhaps Bulk uploading queue items using a CSV file method could help you.

Soruce: https://docs.uipath.com/orchestrator/docs/bulk-uploading-queue-items-using-a-csv-file

Best regards,
Marius

I am using Orchestrator Api so i need help in how to add multiple queue Items at one time by using Bulk add queue item Api?

Hello @Atul_Singh2
Kindly Follow this

  1. Use Read Range to read the excel sheet and stored it in a Datatable variable.
  2. Use Bulk add Queue items, where pass the variable name and mention the queue name.
    image

Also, check there is no special characters in Headings

To add Queue items in bulk using RestApi, the below example will help:

URL:

https://cloud.uipath.com/ORG_NAME/TENANT_NAME/orchestrator_/odata/Queues/UiPathODataSvc.BulkAddQueueItems

Authorization: Bearer + access_token

Method: POST

Headers:
x-uipath-organizationunitid: FOLDER_ID
Content-Type: application/json
Accept: application/json

Body of type JSON:

example:

{
	"queueItems": [
		{
			"SpecificContent": {
				"SupplierName": "TWITTER",
				"SupplierCode": "102882",
				"SaveFolderMonth": "2201",
				"SaveFolderName": "twitter",
				"DateStart": "1/1/2021",
				"DateStop": "1/28/2022"
			},
			"Reference": "9",
			"Priority": "Low"
		},
		{
			"SpecificContent": {
				"SupplierName": "Facebook",
				"SupplierCode": "102882",
				"SaveFolderMonth": "2202",
				"SaveFolderName": "twitter",
				"DateStart": "1/1/2021",
				"DateStop": "1/28/2022"
			},
			"Reference": "10",
			"Priority": "Normal"
		},
		{
			"SpecificContent": {
				"SupplierName": "Messenger",
				"SupplierCode": "102882",
				"SaveFolderMonth": "2202",
				"SaveFolderName": "twitter",
				"DateStart": "1/1/2021",
				"DateStop": "1/28/2022"
			},
			"Reference": "11",
			"Priority": "High"
		}
	],
	"queueName": "Queue_2",
	"commitType": "ProcessAllIndependently"
}

2 Likes

Great thanks @marian.platonov perfectly working

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