Deploy Triggered Action Metadata

After making any of the following types of changes to a Triggered Action, you must deploy metadata for the changes to take effect. This process pushes the changes to the Loyalty server, making them available for use across the platform.

  • Publishing a new Triggered Action.

  • Editing any aspect of a Published Triggered Action.

  • Deleting a Published Triggered Action.

  • Archiving a Published Triggered Action.

  • Rearranging a Published Triggered Action within a Trigger Group.

Note: The steps below describe how to deploy metadata directly from the Triggered Actions screen; you can also deploy metadata from the Deployments screen

If you have any of the above Triggered Action changes that haven't yet been deployed, a warning message is displayed at the top of the Triggered Actions screen. In a multi-user account, you could have Triggered Actions created or edited by different users. When you deploy the Triggered Action metadata to the server, the process automatically deploys the metadata for all modified Triggered Actions, so you should always verify what Triggered Actions will be deployed before you run the deployment process.  

  1. Select Rules from the top navigation bar, then select Triggered Actions from the side navigation menu. The Triggered Actions screen is displayed.

  2. Within the warning message at the top of the Triggered Actions, click the Show diff link.

  3. The platform displays a pop-up window, showing the difference between the deployed and un-deployed Triggered Actions, so that you can see all the changes that will go into effect when you deploy metadata. When finished reviewing the differences, click Close.

You can deploy metadata immediately, but the best practice is to validate the Triggered Actions logic before deploying metadata to ensure no incorrect expression code gets deployed to the server that could cause issues.

To validate Triggered Actions metadata:

  1. From the Actions menu in the top-right corner of the Triggered Actions screen, select Validate Trigger Rules Metadata.

  2. The Validation Result pop-up window is displayed. If the validation step passes, a message is displayed reading: "Trigger Rules Metadata is valid." If the validation step fails, an error message is displayed; review and correct your Triggered Action expressions, then retry the validation step.

To deploy Triggered Actions metadata:

  1. If you validated metadata as described above, within the Validation Result pop-up window, click Deploy Trigger Rules Metadata. Otherwise, from the Actions menu in the top-right corner of the Triggered Actions screen, select Deploy Trigger Rules Metadata. A confirmation dialog box is displayed; click Confirm.

  2. If the deployment was successful, a message is displayed reading: "Trigger Rules metadata as been deployed."