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
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 expressionjson
file is not supported.
Loading an Expression from a File
- In the expression builder, click Load from File
.
- 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. - Optional: Click Cancel to cancel the load and retain the current expression.