
When developing Workflow Apps, you typically prepare choices for users to select on a per-app basis. However, when you want to use the same choices — such as an employee directory or product codes — across multiple apps, creating the same Select-type Data Item over and over is tedious. In Questetra, by preparing choice data in XML format (Choice master XML), you can share it across multiple apps and workflow platforms.
There are several ways to create a Choice Master XML. This article covers the two basic methods — “Text Editor” and “Modeler” (both approaches address how to implement the choices property) — along with where to register the created XML. Other methods (automated generation, AI, external service integration) are linked from each respective article.
Table of Contents
- Method 1: Create with a Text Editor
- Method 2: Create with the Modeler
- Where to Register the Created Choice Master XML
- Other Methods
Method 1: Create with a Text Editor
A Choice master XML has a structure where item elements representing individual options are listed under the root element items. Each item has two attributes: value (Choice ID) and display (Display label). You can create one by writing this format directly in a text editor such as Notepad.
<?xml version="1.0" encoding="UTF-8"?>
<items>
<item value="1" display="Alpha Corp" />
<item value="2" display="Beta Inc." />
<item value="3" display="Gamma Ltd" />
<item value="4" display="Delta PLC" />
</items>- Start with the XML declaration on the first line, begin with
<items>, list each choice as<item value="ID" display="Label" />, and close with</items>. - Use UTF-8 for the character encoding.
- Each
value(Choice ID) must be unique. If there are duplicates, only the first one will be effective and subsequent ones will be ignored. - Characters that need escaping must be written as entity references (
&→&,<→<,>→>,"→",'→'). If any are missed, an error “No choices” will occur when uploading.
For detailed attribute specifications, see R3190: Format of Choice XML.
How to Define Choice Properties
Values assigned per choice, such as unit price or category, are called choice properties. Choice properties can be used for copying to String-type Data Items or referencing from [Expression] in Numeric-type Data Items. In the Choice Master XML, place a <columns> element directly under <items> and before any <item> elements, declaring property names (column names) using <column> elements. In each <item> element, in addition to value and display, specify values using attributes formatted as prop- followed by the column name.
<?xml version="1.0" encoding="UTF-8"?>
<items>
<columns>
<column>unitPrice</column>
<column>category</column>
</columns>
<item value="P01" display="Ballpoint Pen (Black)" prop-unitPrice="120" prop-category="Stationery" />
<item value="P02" display="Copy Paper (A4, 500 sheets)" prop-unitPrice="550" prop-category="Consumables" />
<item value="P03" display="USB Flash Drive (64GB)" prop-unitPrice="1980" />
</items>- For column names, use single-byte letters, single-byte numbers, and underscores. The first character must be a single-byte letter or an underscore. Other characters, such as Japanese characters, cannot be used in column names.
prop-attributes with column names not declared in<columns>are not imported. Properties are also not imported if<columns>is placed after<item>elements.- For choices that do not have a value for a given column, the
prop-attribute for that column can be omitted (if left empty, it is also treated as having no value). In the example above, P03 has no value for category. - Up to 50 Property Columns are allowed.
For how to use choice properties, refer to Assign Properties to the Choices of a Select-type Data Item. Note that [Choices retrieved via HTTP] does not support choice properties.
Method 2: Create with the Modeler
This method involves entering choices into a Select-type Data Item in the Modeler and exporting them directly as XML. You can produce the same XML as Method 1 without writing any code by hand.
- In the Modeler’s [Data Items] tab, open a Select-type Data Item and click the [Edit] icon to open the settings dialog.
- Enter choices in the [Choices] section. Using [Edit in CSV format], you can enter them in bulk as “Choice ID,Display label”, one per line.
To add properties to your options, click [Add Property Column] and enter the property name in the [Column Name] field. The rules for naming columns (such as the restriction against using Japanese characters) are the same as those described in “How to Define Choice Properties”. Once a column has been added, enter the corresponding value for each option. When using [Edit via CSV], add the property values in the same order as the property columns starting from the third column, separated by commas. For example, the entry “P01” from the “How to Define Option Properties” guide would be formatted as:P01,Ballpoint Pen (Black),120,Stationery.

- Click the [Add-on file] button at the bottom of the [Choices] section → select [Export Add-on file] to download in XML format.

If you enter and export the first example from Creation Method 1 (Alpha Corp to Delta PLC), you will obtain the exact same XML as in that example (without the XML declaration on the first line). If you have added Property Columns, the <columns> element and prop- attributes will also be output. The downloaded XML can be used as a Choice Master for other Select-type Data Items or business Apps (registration destinations are described later).
Note that up to 1,000 choices per Select-type Data Item can be entered in the Modeler. If Property Columns are added, keep the number of choices multiplied by the number of Property Columns at 1,000 or fewer (for example, if there are 5 Property Columns, up to 200 choices are allowed). Exceeding this limit prevents saving. When creating a Choice Master XML exceeding these limits, use the [Update Choice Master] Step described later or have an AI generate it
(→ Creating Choice Master XML with the [Update Choice Master] Step / Creating Choice Master XML with AI).
Where to Register the Created Choice Master XML
Register the created XML in one of the following locations, depending on the scope of apps you want to reference it from.
Share across multiple apps (Global)
Upload it to [App-Shared Add-on] in System Settings. It can be referenced as a Choice master from any app within the workflow platform.
- System Administrator privileges are required for registration.
- XML in [App-Shared Add-on] is not included in per-app exports (App Archive). When migrating platforms, re-register the XML separately.
Use within a single app only (Local)
Upload it to the [Add-ons] of each app. It can only be referenced from Select-type Data Items within that app, and registration can be performed by any user with App Administrator privileges.
Updating and File Size
To replace a registered XML, re-upload it with the same file name. No version history is retained (there is no way to review previous versions), so manage the source data on your own. The upload size limit per file is 20 MB.
(For the [App-Shared Add-on] operation procedure, see System Settings – App-Shared Add-on)
Other Methods
In addition to the manual creation methods above, the following approaches are available.
Create with the [Update Choices] Step
Using the [Update Choices] automated step, you can save the choices held in a Select-type Data Item directly as a Choice master XML (Add-on file). By updating the choices in the workflow and re-executing the step, you can maintain the master. → Creating a Choice Master XML with the [Update Choices] Step
Create with AI
You can have AI such as ChatGPT or Claude generate XML from your data, or write a conversion program for you. → Creating a Choice Master XML with AI
Use Data from External Services
You can also import data from Google Sheets or kintone for use as choices. → Utilize Customer Data on Google Sheets as Choices / Using Employee Data From a kintone App as Choices


