Feature deep dive

Flow: from the data landscape to the warehouse loads

Draw the source systems, data layers and business processes you already have. Then design each load into the warehouse as a diagram of real source objects, typed steps and target entities, and export the loads as a dbt project your team runs on Microsoft Fabric Data Warehouse or SQL Server.

Flow loading sales orders: SALESTABLE from Dynamics 365 F&O, a Validate step, a chain of three Lookups resolving the customer and address keys, and a Merge into Sales Order
Overview

What you have, and what you build from it

A Flow marked Logical only shows the data you have and how it moves. The logical model, with the Flows that load it, shows what you build from it.

A Flow marked Logical only draws what already exists or what you do not control: the source systems, the integrations between them, the bronze and silver layers of a data platform, the consumers of the data, and the business processes that make and use it. Each step can link to a more detailed Flow, so a reader goes from the whole landscape down to one system and back. Nothing in such a Flow is exported.

A physical Flow is a diagram of a load into the warehouse. It places the real source objects and logical entities it moves, with processing steps between them that say exactly what happens: a Lookup, a Merge, a Historize. The lines between them are connections, and the steps that write columns map them attribute by attribute, so the diagram is checked against the agreed model rather than drawn beside it.

That makes a Flow a specification developers can build from, and one the export turns into code: the Flows in a project become one dbt project for Microsoft Fabric Data Warehouse or SQL Server. Model One generates the project. Your team runs it, schedules it and points it at the warehouse.

The screenshots below come from the product, using a demo that loads order-to-cash data, a customer dimension and a sales fact from Dynamics 365 Finance & Operations.

Walkthrough

From the data landscape to the dbt project

Eleven steps: the source catalogue, then the landscape and the business processes around the warehouse, then a dimension load and a fact load, the generated code and the changes that follow.

Step 1

Catalogue the source systems you load from

Record each upstream system as a source — Microsoft SQL, File or Generic — with its tables, views and columns. Paste a DDL script to bring its objects in at once, paste a newer one later to update them, and document file feeds, APIs and other systems by hand. Model One does not connect to the source: it keeps the definitions and any example data you give it, never a connection or credentials. Each source and object can also carry your own metadata, such as an owner. Give each object its primary, alternate and foreign keys, and a Flow draws each foreign key as a line between the boxes.

  • Paste CREATE TABLE, VIEW and PROCEDURE scripts, SSMS output included, and tick what to import
  • A newer script updates the objects you already have, column by column, instead of adding copies
  • Columns keep their source datatype, length, precision, scale and nullability
  • Primary, alternate and foreign keys, read from the script or added by hand
  • Example data for each object: up to 100 rows, or a JSON, XML or text snippet
  • File and Generic sources for flat files, APIs, queues and SaaS systems, documented by hand
  • ER/Studio DM1 import brings data sources and lineage diagrams across as Flows
The CUSTTABLE source object from Dynamics 365 F&O in its editor: a Sensitivity pair under Metadata, then its eight columns, each with its datatype, length, precision, scale and nullability
Step 2

Draw the data landscape you already have

In a Flow marked Logical only, five logical step types draw the architecture around the warehouse. A System lists the Sources that belong to it, and a Data group lists its datasets. Integration, Data store and Consumer show how the data moves and who uses it. Source systems, bronze and silver are Sources, and only gold is entities that physical Flows load. Each step can link to another Flow, so the landscape opens down to each system, and Back returns you.

  • System, Data group, Integration, Data store and Consumer: steps with no columns, never exported
  • Each name a System or a Data group lists opens the dialog of that Source or dataset
  • Link a step to a more detailed Flow, open it from the box, and go Back to where you came from
  • Dotted lines for the foreign keys between datasets, and metadata such as Frequency: Daily on each connection
  • The HTML report follows the links, so people without an account can browse the landscape too
  • OneAssist and your own agents follow the same rule for bronze, silver and gold
The Flow Sales Data Landscape, marked Logical only: the Dynamics 365 F&O System listing its Source, Integrations through the Bronze, Silver and Gold: Sales Mart Data stores, the gold store's link to the Load Sales Fact Flow, and two Consumers
Step 3

Document a business process in lanes

When a business process must be documented, draw it in the same kind of Flow with Activity, Decision, Start and End, each in a shape of its own. A line between them is the order of the work. A line from an Activity to a Data group or a Data store says that the activity creates or changes that data, and a line the other way that it reads it. Lanes put the steps of each role, team or system in a band of their own.

  • An Activity shows who performs it, and can link to a more detailed Flow
  • Dashed lines for the data an activity creates, changes or reads
  • Lanes as horizontal or vertical bands, or as rings around one centre, up to 20 in a Flow
  • Auto layout, and a change of lane layout, keep each step in its lane
  • Checks for a Start with a line into it, an End with a line out of it and a Decision with fewer than two lines out
The Flow Order-to-Cash Process in four lanes, Sales, Finance, Warehouse and Dynamics 365 F&O: a Start, five Activities with who performs each, the Credit OK? Decision, an End, and dashed lines to the Sales orders and Customers Data groups
Step 4

Draw the load with the real objects

Place source objects and logical entities on the diagram and connect them through processing steps. Both are references, so a column added to the entity or the source object appears on every Flow that uses it. Each step's type decides what it may connect to, and the canvas refuses a connection the model does not allow. There are 31 step types. The 22 that load data are Transform, Union, Join, Lookup, Aggregate, Filter, Sort, Split, Distinct, Pivot, Unpivot, Rank, Derive, Merge, Historize (SCD2), Validate, Hash, Normalize, Mask, Load, Match and Generic. In a Flow marked Logical only, five logical types draw the data architecture: System, Data group, Integration, Data store and Consumer, and four types draw a simple business process: Activity, Decision, Start and End.

  • 22 process types that load data, including Lookup, Merge, Historize (SCD2), Hash, Aggregate and Validate
  • Intermediate steps chain into each other; a Transform, Merge or Historize writes the entity
  • Carried columns resolved from each step's input rather than copied, so they cannot go stale
  • Free placement, plus auto layout (radial, vertical, horizontal, force) that never overlaps boxes
  • With OneAssist set up, describe a load in plain language and Agent mode draws it for you
Flow loading sales orders: SALESTABLE from Dynamics 365 F&O, a Validate step, a chain of three Lookups resolving the customer and address keys, and a Merge into Sales Order
Step 5

Say exactly what each step does

Label each connection with what it carries, and configure each step where it applies. Map source attributes to target attributes one column at a time, with an expression and the business rule beside each, and give each step its own settings: lookup keys and returns, merge keys and clauses, validation rules.

  • Attribute-level mapping with an expression and a business rule per target column
  • Auto-map by name from upstream inputs, skipping key columns the database generates
  • Merge with WHEN MATCHED, NOT MATCHED BY TARGET and NOT MATCHED BY SOURCE clauses
  • Lookup keys, returns and a no-match rule: keep NULL, drop the row or use a default
  • Validate rules that flag, reject or route failing rows to another step
The connection into Sales Order selected, labelled MERGE into Sales Order
Step 6

Load type-2 dimensions without hand-written SQL

A Historize step loads a type-2 slowly changing dimension: a change closes the version that was current and opens a new one beside it, instead of overwriting it. With only a Valid from column, the same step builds an insert-only, Data Vault-style satellite. Hash steps compute the keys and change hashes these loads compare on.

  • A full type-2 dimension with Valid from, Valid to and Is current, or an insert-only satellite
  • Validity columns can be added to the entity for you, so they reach the ERD and the CREATE TABLE
  • Hash steps for Data Vault hub and link keys and for change hashes, SHA2_256 by default
  • A Historize step can reuse a Hash step's change hash, so loads detect change the same way
Flow historizing customers: CUSTTABLE from Dynamics 365 F&O, a Legal Entity filter, a Keep History step of type Historize (SCD2), and the Customer Dimension with Valid From, Valid To and Is Current
Step 7

Configure history by naming roles, not writing SQL

The Config tab asks for roles: which columns identify a member, what each column does when its value changes, where validity is recorded and what a vanished member means. A line at the top says which shape your choices produce. The dimension table itself comes from the physical model's CREATE TABLE script, run before the first dbt build.

  • History mode per column: track history, overwrite everywhere, or fix at first insert
  • Validity columns: Valid from is required; Valid to, Is current, a version number, an Is deleted flag and a change hash are optional
  • Business key: the columns that identify a member across all its versions
  • Effective date from the load time or a source column; a vanished member ignored, or marked deleted when the input is a full extract
  • Exported with assertions dbt build runs: one open version per member, no overlapping intervals
The Keep History step's Config tab: the validity columns Valid From, Valid To and Is Current, and a history mode for each column: Track history, Fix at first insert or Overwrite everywhere
Step 8

Load a fact table against its dimensions

A fact load reads the order lines, joins each to its order header and resolves every dimension key with a Lookup before a Merge writes the fact. The customer key is looked up against a Filter that keeps each customer's current version, so the type-2 dimension returns one row per customer. Dimension and fact loads can be separate Flows: the dbt export assembles them into one project that builds the dimensions first.

  • A Join pairs each order line with its header
  • A Derive step turns the order's timestamp into the date the Date lookup matches on
  • Lookups return the Date, Product and Customer keys, with a default value, such as an unknown-member key, where nothing matches
  • A Filter over the dimension keeps only current versions, so each customer matches once
  • A Merge on Order Number and Line Number inserts new lines and updates the ones already loaded
The Flow Load Sales Fact: SALESLINE joined to SALESTABLE in Join Header, an Order Date step, three Lookups returning Date Key, Product Key and Customer Key from Date Dimension, Product Dimension and a Current Only filter over Customer Dimension, and a Load Fact merge into Sales Fact
Step 9

Show as much detail as the audience needs

Switch the whole diagram between four display modes, so the same Flow serves a stakeholder walkthrough and an implementation review. In Name + Definition mode each step summarises what it does instead of listing its columns.

  • Four display modes: Detailed, Compact, Name + Definition and Name Only
  • Step summaries such as 'Business key: CustomerCode' or 'Returns: Region, Manager'
  • The mode can be overridden per element where one step needs more detail
  • Share it in the HTML report, with a snapshot of every diagram
The sales-order Flow shown in Name Only display mode
Step 10

Export the Flows as a runnable dbt project

Choose the Flows to export and they become one dbt project. The physical model you choose decides the target: a Fabric Data Warehouse model, as here, gives a dbt-fabric project and a SQL Server model a dbt-sqlserver one; both are T-SQL, and PostgreSQL, Oracle and MySQL have no dbt target. The dialog then lists what to check before running the project, such as the tables dbt reads but does not create, and writes the same list into the README. Model One produces the project, with a profiles.yml target for each environment; your team runs, schedules and deploys it.

  • Staging views over sources, an intermediate view per step and marts models for the targets
  • Merge and Historize exported as incremental ansi_merge and scd2 strategies
  • not_null and unique tests derived from each target entity's keys
  • Your own metadata as dbt meta: a model takes its entity's pairs, a column its term's, a source its own
  • An entity no Flow loads, such as a date dimension, is read from its existing table, named by the physical model
  • Keys left to IDENTITY where the physical model declares it, so dbt and your DDL agree
  • The checks never stop the download; only a blocking problem, such as colliding names or an error in a selected Flow, does

See the physical model in detail

The Export dbt project dialog: Historize Customers from D365 and Load Sales Fact ticked and Load Sales Orders from D365 left out, the physical model Sales Mart — Fabric Warehouse chosen, a Check before running list of what to verify first, and beside Export how many dbt models will be generated for Fabric Data Warehouse with the dbt-fabric adapter
Step 11

Check the impact before you change anything

Open an entity and its Used in tab lists every Flow that uses it, so a change request starts from the loads it affects rather than from memory. Diagnostics re-check the open Flow as you work and name a mapping whose column was renamed or removed upstream.

  • Used in tab on every entity: the Flows, submodels and dictionary terms that reference it
  • Jump from a usage straight to the Flow
  • Related tasks on each Flow, so follow-up work stays linked to the diagram it concerns
  • Change history per Flow: each step's configuration, field by field, with who and when
  • Give affected teams read-only access with the Viewer role

See versions and the audit log

Sales Order's entity editor on the Used in tab: four submodels, the one Flow that uses it, Load Sales Orders from D365, three dictionary terms and its related entities
Highlights

Why a Flow is more than a drawing

A diagram tied to the model, checked as you go and turned into code.

Built for warehouse loads

Merge clauses, SCD2 Historize, Data Vault Hash keys, Aggregate, Validate, and Lookups against tables already in the warehouse.

Checked while you design

A banner says whether the open Flow can be exported, and clicking a finding selects the object it names. Nothing blocks editing.

Code from the agreed design

The dbt project is generated from the Flows your team designed and agreed on, not hand-coded from a mapping spreadsheet.

Several people, one Flow

Elements, connections and notes save one at a time and are locked only while selected, so colleagues can work on one diagram at once.

Logical-only Flows for what you have

Draw the systems, data layers, integrations and business processes you already have, linked from Flow to Flow. The dbt export never reads a Flow marked Logical only.

Where Model One stops

It designs and generates. It does not connect to your sources, run or schedule dbt, or build reports or BI semantic models.

Keep exploring

What Flow connects to

Flows sit between the sources you read and the tables the physical model creates.

Map one of your own loads

Bring a real source table and a target dimension. We will design the load with you and export it as a dbt project.