---
title: "InsertTaskResult"
slug: "api/basket/types/inserttaskresult"
sidebar:
  order: 408
---

<a id="ref-1570e9fa8db1"></a>
<a id="ref-d1a67eae9a3a"></a>

## Synopsis

```text
struct InsertTaskResult
{
    string taskId; // attribute
    string? faultMessage; // element
    BItemId[] insertedItemIds; // element
    BItemId[] originalItemIds; // element
}
```

Result of one [batchInsert](/pCon/configuratorOnline/specs/api/basket/operations/batchinsert#ref-3d6295023d7a) task, matched to the task by `taskId`. A present, non-empty faultMessage indicates task failure and uses the same message format as [`BasketServiceFault`](/pCon/configuratorOnline/specs/api/basket/faults/basketservicefault).

`insertedItemIds` is empty if insertion failed, contains one ID for a successful insert task, and may contain multiple IDs for [PasteTask](/pCon/configuratorOnline/specs/api/basket/types/pastetask) (or none for an empty OBX file). Both `insertedItemIds` and `faultMessage` may be non-empty if insertion or pasting succeeded but setting properties failed.

`originalItemIds` is used only for [PasteTask](/pCon/configuratorOnline/specs/api/basket/types/pastetask) when `returnOriginalItemIds=true`. It contains the original OBX IDs, has the same length as `insertedItemIds`, and pairs each original and inserted ID at the same index. Do not rely on task result ordering.
