Building workflows and classic routines

Updated Nov 27, 2026
DataMagik

Building workflows and classic routines

Start a workflow and build it in the editor, or set up a classic routine's sequences and the values they pass along.

Both live on Routines & workflows. To run them, see Routines and workflows.

Start a workflow

On the Workflows tab you can:

  • Start from an example. With no workflows yet, the tab offers starters: Move containers from a sheet, Reconcile a cycle count, Update supplier prices and Export records to Excel. Choose one to add it, then open it to choose your Plex credential and data source.
  • Import a file a colleague exported from DataMagik or DataMagik Desktop.
  • Choose New workflow, give it a Name and, if you like, What it does, then choose Create and open the editor.
  • Convert a classic routine (see Routines and workflows).

The workflow editor

Choose Edit on a workflow to open it in the editor. The menu folds to icons to give the canvas room, and the band shows where the workflow's Plex steps send, for example Plex steps send to Plex test. All workflows takes you back.

The workflow editor: the Steps list on the left, the workflow on the canvas, and the settings of the selected Plex Data Source step on the right

Steps on the left, the canvas in the middle, the selected step's settings on the right.

  • Steps (left) lists every step you can add, grouped by what it does, such as Plex, Logic and Data. Search for one, then drag it onto the canvas, or click it to add it after the selected step.
  • The canvas (middle) shows the steps and how they connect, from Start onward.
  • The settings panel (right) shows the selected step's Parameters, Settings and Output, and buttons such as How to use, Run up to here, Duplicate, Disable and Delete. With no step selected, it shows Workflow settings: named Constants any step can use, and the Timeout (seconds) for one run (60 seconds when left empty).

A Plex Data Source step needs a Plex credential and a Data source. Tick Use Plex test to send to Plex test. The buttons at the top left and top right of the editor fold the Steps list and the settings panel away.

Test, save and keep versions

  • Test run runs the workflow as it is on the canvas, without saving. Plex writes are held unless the step uses Plex test. The canvas then shows how many items each step passed on.
  • Save (Ctrl+S) saves it. The name at the top shows the version and whether it is saved.
  • Versions lists every save. Restore brings an older one back and saves it as the newest version, replacing what is on the canvas.
  • Undo (Ctrl+Z) and Redo (Ctrl+Shift+Z) are next to Versions.

Leaving the editor with unsaved changes asks Leave without saving? first. Exporting writes the saved version, so save before you export.

Steps that only run on DataMagik: a workflow made on the DataMagik website can include steps Desktop can't run. The list marks it Needs DataMagik and names them. Remove them in the editor to run it on this PC.

Set up a classic routine

A classic routine is a list of sequences. Each sequence calls one data source, and they run in order, top to bottom.

  1. On the Classic routines tab, choose New routine. Enter a Name and, if you like, What it does, then choose Create and add sequences. (Import a file adds a routine someone exported, with its sequences, parameters and match rules.)
  2. On the routine's page, choose a web service credential in the box next to Add a sequence. It is used to read the data sources' names and fields.
  3. Choose Add a sequence. Enter its Name, the order it Runs as number, and What it does if you like. Choose the Data source (you can search by name), then Save the sequence.
  4. Add the next sequence the same way.

A classic routine's page with its name, description and two sequences in order

A classic routine: its sequences in the order they run, and where each gets its values.

The table shows each sequence's Order, Data source and where it Gets values from: Its spreadsheet, or the earlier sequences that pass it values. Choose a sequence, or its pencil, to change it; the trash icon deletes it. Change the routine's name and description, then choose Save name and description. The buttons at the top run, convert, export or delete the routine.

Pass a value from an earlier sequence

A parameter fills one of a sequence's inputs with a column from a sequence that runs before it. Save the sequence first, then open it again.

  1. Under Values from earlier sequences, choose Pass a value.
  2. Take the value from: the earlier sequence.
  3. From its: Results (what Plex sent back) or Inputs (what was sent).
  4. Column: the column to take.
  5. Fills this input: the input it fills. The list offers inputs of the same data type as the column.
  6. Add Match rules (below) if the rows need to line up, then choose Save the parameter.

Match rules

Match rules decide which rows get the value. A rule says that a column of the earlier sequence (its Result or its Input) Equals this input in this sequence. Choose the columns, then Add the rule.

  • With match rules, the value fills only the rows of your spreadsheet where the rule matches.
  • With no match rules, each of your rows is sent once for each row the earlier sequence returns.
  • Tick Make a row for each match to have the sequence make its own rows from the earlier sequence's results, with no spreadsheet. See Making rows from an earlier sequence.

When you run the routine, the Load the rows to send step says in one sentence where each sequence's rows come from, so you can check the setup before anything is sent.

Next

Making rows from an earlier sequence

Was this page helpful?