Routines and workflows
Routines and workflows
Saved sets of Plex steps that run on this PC when you press Run: what each kind does, and how to run one.
Open Routines & workflows in the menu. The screen, Run a routine or workflow, has two tabs:
| Tab | What it holds |
|---|---|
| Workflows | A workflow can branch, loop, and read or write spreadsheets. You build it on a canvas in the workflow editor. |
| Classic routines | A classic routine runs its data sources top to bottom, passing values from one to the next. Each data source call is a sequence. |
Both run on this PC, only when you press Run. Need something to run on a schedule, or to send email, documents or labels? Build it in DataMagik instead, where it runs without this PC; Open DataMagik at the bottom of the screen takes you there.

The Workflows tab, with the last run of the selected workflow.
The workflow list
Each workflow shows its description and when it last ran. Its buttons:
- Run runs it (see below).
- Edit opens it in the workflow editor. See Building workflows and classic routines.
- The export icon (Export to a file) saves it as a workflow file. Anyone with DataMagik or DataMagik Desktop can import it.
- The trash icon (Delete) deletes it, with its versions and run history on this PC. Export it first if you may need it again.
A workflow marked Needs fixing has a problem the line under it describes; open it to fix it. One marked Needs DataMagik uses steps that only run on DataMagik; remove them in the editor to run it here.
Import a file adds a workflow file a colleague shared. If the file uses steps that only run on DataMagik, it is still imported, and a message names those steps with Open it to remove them.
Run a workflow
- Choose Run on the workflow.
- If the workflow reads a file, Choose the file to run it with: choose Choose a file and pick the spreadsheet or file on this PC.
- If the workflow has Plex steps, Choose where its Plex steps send: Plex test or Plex live (production). If you choose a different one than its steps are set to, DataMagik Desktop switches them and saves the workflow before it runs.
- Run it: choose Run on Plex test, Run on Plex live or Run. For Plex live, type the workflow's name to confirm.

Running a workflow.
Each step's progress shows in the dialog as it runs. Cancel the run stops it; steps that already ran stay done.
The last run
The panel on the right describes the selected workflow's last run in plain words: how it ended (Finished, Finished with some problems, Stopped with a problem, Cancelled and so on), where and when it ran and how long it took, and what each step did, for example 212 sent to Plex · 2 refused by Plex: location is full.
- Save the results file saves the file the workflow made, when it made one.
- Retry runs the whole workflow again, with the same file when it read one.
Workflow runs also show under Recent work on Home.
Run a classic routine
- On the Classic routines tab, choose Run on the routine (or Run on the routine's own page).
- Connect to Plex: choose the Plex credential the routine sends with.
- Load the rows to send: each sequence says where its rows come from. Choose Load the spreadsheet for each sequence that sends a spreadsheet's rows. A sequence that makes a row for each match gets its rows from an earlier sequence and needs no spreadsheet.
- Choose where to send: Plex test or Plex live (production), then choose Use Plex test or Use Plex live (production).
- Run the routine. For Plex live, type the number of rows to confirm.
Each sequence shows how many rows were sent, accepted and refused by Plex as Plex answers. A sequence that waits on an earlier one says so. When the run is done, Save these results as Excel under a sequence saves its results. Cancel the run stops it, and Run again starts over.
If you close DataMagik Desktop while a routine or workflow is running, it asks first. Keep it running carries on; Close anyway stops the run.
Convert a classic routine to a workflow
Choose Convert to workflow when you need branches, loops or a spreadsheet of the results. Each sequence becomes a Plex step, in the same order, and its parameters and match rules carry over. The classic routine stays as it is.
- Choose the Plex credential the workflow uses.
- Choose where Its Plex steps send to: Plex test (you can switch to Plex live when you run it) or Plex live.
- Choose Convert. DataMagik Desktop says where the new workflow behaves differently, under Good to know.
- Choose Open the new workflow.