Saving and Loading Expressions from a File

You can save or load expressions from a JSON file in order to migrate expressions from one environment to another.

Saving an Expression to a File

Click Save to File save to file button to save the current expression in the expression builder to a JSON file.

The expression file is downloaded to the browser default download location. The file name is the type of object that you are exporting (for example, Derived Property, Policy Filter, Subscription), plus the name of the object being edited.

For example, if you are saving the "Approval - Corp Plan" policy filter, the file name is:

Policy_Filter_Approval_-_Corp_Plan.json.

After you save an expression to a file, you can review it in a json viewer.

Caution:

Manually creating or editing the expression json file is not supported.

Loading an Expression from a File

  1. In the expression builder, click Load from File Load from File button.
  2. In the File Open dialog, select the JSON file you want to load, and then click Open.

    Note:

    If you already have an expression open in the expression builder, the existing expression is overridden. Any unknown object references or syntax errors are omitted when the expression is loaded. Incomplete expression terms are displayed with a red outline, indicating an error.
  3. Optional: Click Cancel to cancel the load and retain the current expression.