Introduction
You can write deployment rules to customize the application deployment process. Deployment rules are written in SQL or XMLA and are commonly used to update or clean up data. Be aware that they run every time you deploy an application. Our deployment rule editor is where application modelers can write and edit deployment rules.
This article covers:
- Navigating to a deployment rule editor.
- Using the deployment rule editor.
- Viewing a published version of your rule.
- Resources for further learning.
Note: For an overview on managing your deployment rules, refer to Deployment Rules Overview
Navigation
Follow the instructions below to go to edit a deployment rule.
1. Go to the Modeler and select an application.
2. Expand Deployment > Deployment Rules and select a deployment rule.
You will land on this page:
Use editor
You have the following features and actions available when writing deployment rules:
Editor
Enter the SQL or XMLA code.
Tip: Refer to Keyboard Shortcuts for quick and convenient commands while using the code editor.
Undo
Undoes the latest change.
Redo
Restores the change that was undone.
View published rule
After writing the rule, you can view a published, read-only version that shows injected values where your variables were. To do so, select the dropdown and then Publish (Read-only).