pptb-optionset-manager
v1.0.1
Published
Create and edit Dataverse global choices and edit the options of local choice columns, with multi-language labels, a review step before saving, and CSV/JSON import and export.
Maintainers
Readme
OptionSet Manager
A Power Platform ToolBox tool for creating and editing Dataverse choices (option sets), with multi-language support and a detailed review step before every save.


Features
- Global choices: Create new ones in a solution, or load an existing one to edit.
- Local choices: Edit the options of an existing choice or multi-select choice column on any table, including Status and Status Reason. A column that uses a global choice opens read-only, with a button to edit it on the Global tab.
- Multi-language support Review and modify any configured localisation. Only the languages installed in your environment are offered.
- All the options: The ability to set the value, color, external value, and hidden flag. New values follow the publisher's option value prefix, and existing values can be changed.
- Reorder options by dragging or with Alt+Up/Down. The new order is saved with your other changes.
- Review before saving: See every insert, update, delete, and reorder before anything is sent, along with the environment and what will be published, with the chance to revert individual changes. Deleted options can be restored from the pending changes bar until you save.
- Import options from CSV or JSON, and export the current choice from the Code tab as JSON (all languages) or CSV (default language).
Requirements
- Power Platform ToolBox desktop app, version 1.2.7 or later
- An active Dataverse connection
- System Customizer or System Administrator security role
Usage
- Choose Global or Local at the top of the sidebar.
- Pick a Publisher and, optionally, a Solution.
- For a global choice, pick one from Global Option Set to edit it, or click New to start one. For a local choice, pick the Entity (table) and Attribute (column).
- Edit labels, values and descriptions, add or remove rows, and reorder them. Expand a row to edit its other languages.
- Click Validate, then Review & Publish. Review the changes and confirm.
Settings (the gear icon) control language sub-rows, validation of blank translations, reordering and more.
What this tool changes
Nothing is written to Dataverse until you click Review & Publish and confirm.
- Global choices: creates a new global choice and updates the display name and description of an existing one.
- Options of a global choice or a local choice column: inserts new options; updates labels, descriptions, color, external value and the hidden flag; deletes options; and changes their order. A global choice is shared, so its changes apply to everything that uses it.
- Status Reason columns: adds status reasons under a chosen Status, and updates, deletes and reorders them. A status reason stays in the Status it was created under.
- Status columns: Dataverse fixes these values for each table, so only their labels, descriptions and default status reason can change. Managed Status columns can't be changed.
- Changed option values: the option is created with the new value and the old one is deleted. Records are not updated: records that stored the old value, or a deleted option's value, keep that number, which no longer has a label.
- Solutions: a solution is optional. Dataverse puts every new global choice in the Default Solution; with an unmanaged solution selected, the new choice and any choice or column you change are added to that solution too. Status changes are the exception, because the Dataverse action takes no solution.
- Review: every save opens a review of each change, the target environment and the solution before anything is written.
- Publishing: after saving, the tool publishes only what it changed using the
PublishXmlRequestcommand: the global choice by name, or the table of a local choice. Publishing a table also publishes any other unpublished changes on it, including ones made outside this tool. - Files: export writes a file only where you choose to save it.
It doesn't change records, tables, forms, views or security, or any column other than the options of the one you load.
There is no undo. Published changes and deletes can't be reverted from this tool. If you need a backup, export the solution from Dataverse or copy the JSON payload from the Code tab.
Data and privacy
The tool talks only to your connected Dataverse environment, through the ToolBox APIs. It makes no other network calls and declares no CSP exceptions. Open in Browser opens make.powerapps.com in your browser.
Development
pnpm install
pnpm dev-watch # builds to dist/ with source maps, watches for changes
pnpm test # unit tests
pnpm lintIn PPTB: Debug → Load Local Tool → select this project root → Help → Toggle Tool DevTools. There is no hot reload, so close and reload the tool tab after each rebuild.
Building and publishing
pnpm build
pnpm validate
npm publish --access publicAI Assistance
Much of the code was written with Claude Code and GitHub Copilot; I reviewed and tested it against Dataverse and maintain it.
