# AddQueueItem

> Adds a new item in an Orchestrator queue. The status of the item will be New.

Adds a new item in an Orchestrator queue. The status of the item will be New.

## Definition

**Namespace:** UiPath.Activities.System.API

**Assembly:** UiPath.System.Activities.Api (in UiPath.System.Activities.Api.dll)

## Overloads

|  |  |
| --- | --- |
| `AddQueueItem(String)` | Adds a new item in an Orchestrator queue. |
| `AddQueueItem(String, String)` | Adds a new item in an Orchestrator queue, from a specified folder path. |
| `AddQueueItem(String, String, DateTime, Dictionary<String, Object>, DateTime. QueueItemPriority, String, Int32)` | Adds a new item in an Orchestrator queue, along with other configurations. |

## `AddQueueItem(String, String)`

Adds a new item in an Orchestrator queue.

```
void AddQueueItem(
    string queueType
)
```

`queueType` [String](https://learn.microsoft.com/dotnet/api/system.string) : The queue where the QueueItem object is to be added.

## `AddQueueItem(String, String)`

Adds a new item in an Orchestrator queue, from a specified folder path.

```
void AddQueueItem(
    string queueType,
    string folderPath
)
```

`queueType` [String](https://learn.microsoft.com/dotnet/api/system.string) : The queue where the QueueItem object is to be added.

`folderPath` [String](https://learn.microsoft.com/dotnet/api/system.string) : [The path of the folder](https://docs.uipath.com/orchestrator/standalone/2023.4/user-guide/folders) where the specified queue is located, if different from the folder where the process is running. This field only supports string values, with `/` as the separator to indicate subfolders. For example `"Finance/Accounts Payable"`.

## `AddQueueItem(String, String, DateTime, Dictionary<String, Object>, DateTime. QueueItemPriority, String, Int32)`

Adds a new item in an Orchestrator queue, along with other configurations.

```
void AddQueueItem(
    string queueType,
    string folderPath,
    DateTime dueDate,
    Dictionary<string, Object> itemInformationCollection,
    DateTime deferDate,
    QueueItemPriority priority,
    string reference,
    int timeoutMS
)
```

`queueType` [String](https://learn.microsoft.com/dotnet/api/system.string) : The queue where the QueueItem object is to be added.

`folderPath` [String](https://learn.microsoft.com/dotnet/api/system.string) : [The path of the folder](https://docs.uipath.com/orchestrator/standalone/2023.4/user-guide/folders) where the specified queue is located, if different from the folder where the process is running. This field only supports string values, with `/` as the separator to indicate subfolders. For example `"Finance/Accounts Payable"`.

`dueDate` [DateTime](https://learn.microsoft.com/dotnet/api/system.datetime) : The date before which the queue item should be processed. This parameter is a criterion for the prioritization of queue items, alongside **Priority** and **Postpone**. This parameter can be filled in with relative dates such as `DateTime.Now.AddHours(2)`, `DateTime.Now.AddDays(10)` and `DateTime.Now.Add(New System.TimeSpan(5, 0, 0, 0))`. Additionally, you can use the US notation to add an exact time, such as 1`2/10/2017 07:40:00`. Automatically correcting this date is available. For example, if you write `8 9 2018 9:0`, it is automatically transformed to `08/09/2018 09:00:00`.

`itemInformationCollection` [Dictionary](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2)[String](https://learn.microsoft.com/dotnet/api/system.string), [Object](https://learn.microsoft.com/dotnet/api/system.object) : Enables importing an entire dictionary of information for a queue item.

`deferDate` [DateTime](https://learn.microsoft.com/dotnet/api/system.datetime) : The date after which the queue item may be processed. This parameter is a criterion for the prioritization of queue items, alongside **Priority** and **Deadline**. This parameter can be filled in with relative dates such as `DateTime.Now.AddHours(2)`, `DateTime.Now.AddDays(10)` and `DateTime.Now.Add(New System.TimeSpan(5, 0, 0, 0))`. Additionally, you can use the US notation to add an exact time, such as 1`2/10/2017 07:40:00`. Automatically correcting this date is available. For example, if you write `8 9 2018 9:0`, it is automatically transformed to `08/09/2018 09:00:00`.

`priority` QueueItemPriority : The priority level of the queue item to be added. This property is a criteria for the prioritization of queue items, alongside `dueDate` and `deferDate`.

`reference` [String](https://learn.microsoft.com/dotnet/api/system.string) : The reference of the added QueueItem. The reference can be used to link your transactions to other applications used within an automation project. Additionally, this feature enables you to search for certain transactions, in Orchestrator, according to the provided string.

`timeoutMS` [Int32](https://learn.microsoft.com/dotnet/api/system.int32) : Specifies the amount of time (in milliseconds) to wait for the activity to run before an error is thrown. The default value is 30000 milliseconds (30 seconds).
