---
title: "getAllChoiceLists"
slug: "api/basket/operations/getallchoicelists"
sidebar:
  order: 452
---

<a id="ref-a27038b68e2d"></a>
<a id="ref-b8eb73baefab"></a>
<a id="ref-cd4f602e3151"></a>

## Synopsis

```text
ChoiceList[] getAllChoiceLists(SessionId sessionId,
    BItemId itemId,
    GetChoiceListOptions options
)
throws BasketServiceFault;
```

See also: [ChoiceList](/pCon/configuratorOnline/specs/api/basket/types/choicelist#ref-49157e820b48), [SessionId](/pCon/configuratorOnline/specs/api/session/types/sessionid#ref-02e397c8fdb4), [BItemId](/pCon/configuratorOnline/specs/api/basket/types/bitemid#ref-bccb6c926e5b), [GetChoiceListOptions](/pCon/configuratorOnline/specs/api/basket/types/getchoicelistoptions#ref-9a7313077020), [BasketServiceFault](/pCon/configuratorOnline/specs/api/basket/faults/basketservicefault#ref-d5adb74faa1b)

The `getAllChoiceLists` operation returns a possible empty sequence of `ChoiceList` structures (§[ChoiceList](/pCon/configuratorOnline/specs/api/basket/types/choicelist#ref-49157e820b48)), one for each property of the article that is visible, editable, and has a choice list[^1].

The `itemId` parameter must identify an article item that is part of the basket item tree maintained by the basket service for the session identified by the `sessionId` parameter.

A [`BasketServiceFault`](/pCon/configuratorOnline/specs/api/basket/faults/basketservicefault) is returned if any of the following conditions occurs:

- The `sessionId` parameter is not a valid string representation of an UUID or does not represent an open session.

- The `itemId` parameter does not represent an UUID.

- The `itemId` parameter does not identify an article item.

[^1]: The `visible`, `editable` and `choiceList` fields of the `Property` structure are all `true`.
