Most Dataverse projects are built by clicking. Someone adds a column in the maker portal, someone else changes a form, and a week later nobody is quite sure what changed, who changed it or whether test still matches dev. Solutions help you move things between environments, but they don’t tell you much about what is inside them or why it changed.

We built DataverseToCode to fix that. It is a VS Code extension that keeps your tables, columns, choices, forms, business rules and form scripts as small, readable files in your project. You change them in VS Code, with visual designers or by editing the text, and Git keeps the history.

The flow is simple:

edit (designer or YAML) → Plan → Push to Dev → commit to Git → release to test → prod

Start from what you already have

You don’t need a new environment to start. Connect to an existing one, and Pull brings its tables into your project as YAML files, together with their forms, business rules, form scripts and the global choices they use. The Connections view lets you look around any environment, including production, without changing anything.

VS Code Explorer after a pull, showing a project table file in YAML with its forms, rules, scripts and choices as separate files
After a pull: each table, form, rule and script is its own file.

Designers for the parts you’d rather not type

Every file is plain YAML, with completion, hover help and validation as you type. A lookup to a table that doesn’t exist, or a choice that isn’t defined, is flagged long before it reaches Dataverse. But you don’t have to write YAML at all if you don’t want to.

The Table Designer shows a table as a form and a grid of columns, keys and status reasons. It edits the same file as the text editor, so a change in one shows up in the other. Every column type and setting the maker portal offers is there, and settings Dataverse won’t let you change once a column exists are locked.

The Table Designer in VS Code showing the Contoso Project table settings and a grid of its columns
The Table Designer, editing the same file you can edit as text.

Forms are drawn the way the model-driven app draws them: the record header, tabs, sections as cards and each column’s control. The form designer lets you lay them out by drag and drop and check them at desktop, tablet and phone sizes.

The form designer with field types on the left, the New Project form in the middle and form and column properties on the right
The form designer: fields on the left, the form as the app draws it, properties on the right.

Business rules appear as flowcharts and in plain English, and the rule editor is laid out like the maker portal’s, with IF, THEN and ELSE and a live flowchart as you edit.

A business rule called Budget required when active, drawn as a flowchart with its logic spelled out underneath
A business rule as a flowchart, with its logic in plain English.

Try it before you push it

Try Form runs a form inside VS Code, offline, with its real scripts and the table’s business rules. Change a field and watch what your scripts and rules do, step by step, in the event log. One click turns what you just did into a test.

Try Form running the New Project form inside VS Code, with the offline data panel and the event log on the right
Try Form: the form, its offline data and the event log.

Tests can be generated from the project with no typing, and they run offline by default. Form scripts get IntelliSense typed to your own tables, so form.getAttribute(' lists the real columns and a typo is caught before it ships.

See exactly what will change

Plan compares your files with your development environment and lists every change before anything is sent. Push to Dev applies the items you tick, inside your solution, and brings along anything they depend on. Push only ever goes to development. Test and production receive managed solutions through releases.

Because people still make changes in the maker portal, the extension also watches dev for them. It tells you what changed, who changed it and when, and lets you pull it, merge it with your own work or ignore it. Claims let a team sharing one dev environment say who is working on what, so nobody pushes over someone else by accident.

Compare shows two environments side by side, and Check Drift tells you whether an environment still matches your files. That answers the question every release manager asks: is test really what we think it is?

Two table files side by side, with the Estimated hours and Summary columns highlighted as missing from production
Comparing dev and production: production is missing two columns.

The Solution Map shows the whole solution at once: tables with their forms, rules and scripts, how they connect, and everything they depend on outside the solution. Issues that would make an import fail are listed first.

The Solution Map with a list of issues on the left and a diagram of the solution and its dependencies on the right
The Solution Map: issues first, then the solution and what it depends on.

Releases, Git and pipelines

A project is a folder of small text files, so Git records every change and the team can review it in a pull request. New projects come with pipelines for GitHub Actions or Azure DevOps that check every pull request and release tagged versions to test and production, with a person approving production. When several people share dev, you can release just the stories you choose, with release notes committed beside the code.

The extension also generates Markdown documentation and an Excel data dictionary, draws a relationship diagram that updates as you edit, and creates repeatable seed data for testing. Real data you pull for testing stays on your machine, and personal details can be anonymised before they are written.

DQL: SQL for Dataverse

This is the part we enjoyed building most. DQL is SQL for your Dataverse tables: SELECT with joins, WHERE, GROUP BY, CASE and variables, plus INSERT, UPDATE and DELETE. You write it in .dql files with completion for your tables and columns, and the results open alongside. It runs as you, so you only see what Dataverse lets you see, and any change is counted and confirmed before it happens.

A DQL query joining projects to accounts with a CASE expression, and its results in a grid beside it
A DQL join with a CASE, and its results.

Results can be exported to Excel, copied as a table into Teams or Outlook, shared as a Dataverse view, or turned into a chart without leaving VS Code.

A DQL query counting open tasks by status, shown as a column chart
Any query result can become a chart.

DQL goes further than queries. A procedure is DQL you write once and call from a form script, compiled into a typed JavaScript function. Mark it to run on the server and it becomes a Custom API that cloud flows, canvas apps and other systems can call too. Add one line, “-- schedule: every day at 02:00”, and push creates the Power Automate flow that runs it. A query can even become a Dataverse table, with rows that come from the query each time they are read.

A DQL procedure on the left and the generated JavaScript function Dql.openTasks on the right
A DQL procedure and the JavaScript it compiles to.

AI assistants, with the same guardrails

AI coding assistants such as GitHub Copilot, Claude Code and Cursor can change the schema the same way you do. New projects include an MCP server and the instructions the assistants read. They validate, show you the plan and wait for your approval before anything is pushed to dev. The assistant does the typing, and you still decide what goes in.

An AI assistant in VS Code showing a plan for adding a column and waiting for approval before pushing
An AI assistant shows the plan and waits for approval.

Why we built it

We have spent years bringing engineering discipline to low-code platforms, first with K2 and now with Power Platform. Dataverse deserves the same things any other codebase gets: history, review, testing, repeatable releases and a clear view of what changed. DataverseToCode lets makers keep the visual tools they like, and gives the team the controls they need.

If you run a Dataverse estate and want to see it working on your own environment, get in touch.