Start integrating with ONEiO for free!
SIGN UP

How to use the Routing Rule export & import function.

Introduction

Routing Rules can be exported in JSON format, edited and imported back into ONEiO.

This introduces a couple of rule functions not currently available in the UI, such as MultiValueToSingle and Counters. Furthermore it gives customers the possibility to quickly promote changes from QA to Production environments without the need to contact support.

Exporting 

Routing rules can be exported several ways in the UI

  1. Inside the rule itself
  2. From the rule list view

1) From inside the rule

This will export the currently viewed Routing Rule in JSON format as a direct download.

ONEiO__xONEiO_Demo_-_Enterprise_2_resize.png

2) From the rule list view

A specific version of a Routing Rule can be exported by either:

  1. choosing the rule in the list view and selecting "export into file" to export the latest version or
  2. opening the version submenu, selecting the a version and exporting the rule from the right hand menu.

ONEiO__xONEiO_Demo_-_Enterprise_1.png

 

Important differences on where to import (New rule vs New version)

Rules can be imported in several ways depending on the intended effect.

Do you want to create 

  • A new rule
  • A new version of a rule

Creating a new rule

Importing a rule from the rule list view will create a completely new rule.

Select the "Import" button from the rule list view.

ONEiO__xONEiO_Demo_-_Enterprise_5.png

Either "drag & drop" the JSON file into the upload modal, or choose the file from the explorer.

ONEiO__xONEiO_Demo_-_Enterprise_8.png

The new rule will not be created right away, instead the rule editor will be presented. This way any issues with the rule can be fixed before saving the new rule.

ONEiO__xONEiO_Demo_-_Enterprise_9_new_rule.png

Creating a new version to an existing rule

Importing the new rule from inside the rule or from the side menu in the rule list view will create a new version of an existing rule.

ONEiO__xONEiO_Demo_-_Enterprise_4.png

The rule opens up in "Edit" mode to ensure any issues can be fixed before saving the new rule version. In this example the Entity Type is not set as the JSON file had a typographical error, misspelling the entity type, leaving the field empty.

ONEiO__xONEiO_Demo_-_Enterprise_12.png

Fore more information on the structure and settings of the exported JSON please visit this article:

Routing Rule JSON structure

Was this article helpful?
1 out of 1 found this helpful
Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.