---
title: Choice Lists
slug: docuflow-guides/choice-lists
docTags: 
createdAt: 2020-03-10T16:52:11.000Z
---

ChoiceList allows you to create list items from SAP in a SharePoint list which helps to track and manage data.&#x20;

This can be used in many scenarios where you want to store a collection of documents under each list item.&#x20;

Middleware also allows to link these list items to a document by attaching a metadata field  of lookup type and value while creating or updating the document.

SAP requires two fields to be filled to create a list using the following BAPI:  /DFLOW/ZCMSCREATECHOICELIST\_WS

1\) ZCHOICELISTNAMEPREFIX:&#x20;

Required: Determines list name inside a specific site or subsite to create new items in SharePoint.

Example: EquipmentMaster.

2\) ZFORCE:

Optional: A flag that allows you to clear all the existing items in a list and add new set of items to it.

Example: "X" to enable the flag.&#x20;
