Skip to content

Carry your changes from test to production, step by step

Build and prove a change in a test environment, then move it to production as one package that is compared, previewed, checked and reversible. In this guide you package a workflow and two connectors, export them, and preview the import on the other side.

8 steps·6 min read·Customization

Build in test, ship to production, keep every environment in step.

What a solution is

  • A named, versioned list of what you built in the Builder: tables with their fields, choices, views and forms, scripts, custom actions, connectors, workflows, ribbons, navigation layouts, roles, Coin's contracts, prompts and skills, rules and business settings.
  • It travels as a zip: Export on one environment, Import on the other. Each part is matched by its name, never by an internal id, so it lands on the right thing.
  • Compare environments (on the Reconciler page) shows everything that is only on one side or different, and turns what you tick into a solution.
  • Every import is previewed first, applied only when clean, recorded line by line, and can be rolled back.

Good to know

  • Known issue: Add components and Add what's required currently refuse to list the components: Add components opens nothing and Add what's required stays greyed out, so you cannot pick them on the solution's page yet. Meanwhile an administrator adds them to the solution another way, through Codossier Office's API; everything after that (export, compare, preview, apply, roll back) works as shown.
  • Never in a solution: records, people, keys and secret values, settings that belong to one environment, scheduled jobs, the Company Theme.
  • A solution only lands in an environment of the same organization. Only the environment that sends the office's email sends email, so testing never emails a client.
  • Importing never deletes anything. To remove something in production, delete it there by hand.
  • Custom controls, dialogues and dashboards are not in a solution yet: make them again on the other environment.

Before you start

  • You need the Solutions area of the Builder (administrators), in both environments: the one you built in (test) and the one you bring it to (production).
  • Both environments must belong to the same organization: a solution never lands in another office's database.
  • We package Lease intake pack: the Lease file kickoff workflow and the two connectors it can call. In test, the court reporter connector's timeout was lowered from 30 to 20 seconds; production still has 30.

Part 1. Put what you built into a solution

1Open Builder → Solutions and press New solution

The page has two lists. Solutions are the packages made here, each with its unique name, version and when it was last exported. Brought in (further down) is every file loaded here, to import or to compare. Type in the search box to find a solution by name, number or unique name.

The Default Solution is Codossier Office's own: it always holds everything built in this environment, and its export is the compare file (Part 2). Make your own solution for each change you want to carry. Import is for the other side: it loads a zip from another environment (Part 3).

Carry your changes from test to production, step 1: Open Builder → Solutions and press New solution (A new package; Find one; Bring a zip in (Part 3))
1A new package2Find one3Bring a zip in (Part 3)

2Name it, give it a unique name and a version

  • Name: what people read (Lease intake pack).
  • Unique name: lower-case letters, digits and dashes (lease-intake-pack). It starts the zip's file name and is how the other environment recognises the package.
  • Version: start at 1.0.0 and raise it each time you ship a change, so everyone can tell two zips apart.
  • Description: what the package is for.

Press Create. The solution opens, empty.

Carry your changes from test to production, step 2: Name it, give it a unique name and a version (Starts the zip's name; Raise it per release; Make the solution)
1Starts the zip's name2Raise it per release3Make the solution

3See what a solution holds, and make one from a compare

The solution's page lists what it carries, grouped by type with a count per group: here two under Connectors (their keys are blanked in this picture) and one under Workflows. Tick items and press Remove to take them out of the package; the components themselves are untouched. Select all and Select none tick or clear every item.

A solution made with New solution starts empty. To make one that holds what you built, start from a compare: open Builder → Reconciler, load the other environment's compare file in Compare environments (Part 2), tick what you built (it shows as Only here or Different), type a unique name and press Make a solution here. Codossier Office makes a solution holding exactly what you ticked, ready for Export. Every click of that road is in Keep test and production in step.

Carry your changes from test to production, step 3: See what a solution holds, and make one from a compare (Grouped by type; Tick every item; Take items out)
1Grouped by type2Tick every item3Take items out

4Export it as a zip

Press Export. Codossier Office checks every component still exists, writes lease-intake-pack_ plus the date and time .zip, keeps a copy on the solution and downloads it. Code-made items are left out and named, because they arrive with Codossier Office's own releases.

What never travels: records, people, keys and secrets (a connector carries the names of its keys, never their values), switches that belong to one environment, scheduled jobs and the Company Theme. Export signed is for Codossier Office's own packages and works only where Codossier Office signs them: use Export.

Carry your changes from test to production, step 4: Export it as a zip (Download the zip)
1Download the zip

Part 2. Compare two environments

5Compare environments from the Reconciler

Not sure what differs between test and production? Open Builder → Reconciler (under Monitoring in the Builder menu). In Compare environments:

  1. On production, press Export to compare: it downloads everything built there.
  2. On test, press Load to compare and pick that file.

The comparison lists every item Only in the file, Different (property by property) or Only here, and counts what is The same and what is Code-defined (that arrives with a release). Tick items, then Make a solution here to package what production lacks, or Import from the file to bring the file's version here, previewed first. A compare never changes anything.

Carry your changes from test to production, step 5: Compare environments from the Reconciler (On the other environment; Here: shows the difference)
1On the other environment2Here: shows the difference

Part 3. Bring it in: preview, apply, roll back

6On production: Import, and read the preview

On the environment that receives it, open Builder → Solutions, press Import and pick the zip. Codossier Office previews it at once: nothing is written yet. (The file name and the component keys are blanked in this picture.) Every component is checked against this environment's own definitions and gets one action:

  • Create: new here.
  • Update: here but different; each changed property is listed with its value here and the file's. Here: the connector's timeout_seconds, 30 → 20.
  • Unchanged: already the same.
  • Skipped: made by Codossier Office's code.
  • Blocked: it cannot land as it is; the line names the property and why (a type that cannot change, a missing dependency, a name taken).

A preview with nothing blocked is Clean.

Carry your changes from test to production, step 6: On production: Import, and read the preview (Nothing blocked; What changes: here 30, file 20; What cannot land)
1Nothing blocked2What changes: here 30, file 203What cannot land

7Apply, and roll back if you need to

Press Apply. It is offered only after a clean preview, and refused if this environment changed since the preview (press Preview again). The import runs in the background, type by type, as you: tables first, then fields, views, forms, scripts, workflows, ribbons, roles, and business settings last, so a switch turns on after what it switches. A published workflow is sealed again under your name.

Every write is kept in the import's Trace (Download trace saves it, to send for a look). If anything fails, Codossier Office rolls the import back at once. To undo an import that worked, press Roll back on it: Codossier Office first checks nothing it changed was changed since, then puts changed items back exactly and removes created ones. A solution never deletes anything.

Carry your changes from test to production, step 7: Apply, and roll back if you need to (Lands it; Check again first)
1Lands it2Check again first

8Brought in: every import and compare, with its result

Back on Builder → Solutions, Brought in keeps every file loaded here, newest first, with its Result: Clean or Blocked after a preview, Compared after a compare, then Applied, Failed or Rolled Back. Click a file to open its preview, its trace or its rollback. (The file names are blanked in this picture.)

Carry your changes from test to production, step 8: Brought in: every import and compare, with its result (Ready to apply; Open it to see why)
1Ready to apply2Open it to see why

What next