Create a trigger
The Sitecore Content Hub provides you with a trigger framework that allows you to configure triggers using the user interface. A trigger is fired when a specified event occurs under specified conditions. When the trigger fires, it can initiate a set of actions.
To create a trigger:
-
Open the Sitecore Content Hub. On the ribbon, click Manage.
-
Click Triggers, and click New trigger.
-
On the General tab, enter the following values:
Field
Value
Enter a name
CMP content modification
Enter a description
Post to Azure Service Bus after content change
Objective
Entity modification
Execution type
In background
-
On the Conditions tab, click Add definition, and in the drop-down list, click Content. This adds a new item to the list of conditions.
-
Add the following definitions:
This triggers the content import when an item is moved to the Approved for publication workflow state.
NoteYou can add multiple definition conditions to the trigger. For a complete overview of capabilities, see the Sitecore Content Hub documentation.
-
On the Actions tab, add the action you created previously (CMP content modification).
-
Click Save and close. Confirm to activate the trigger.
You can also activate the trigger after you have completed all the configuration settings in Sitecore Content Hub and in Sitecore. At this point, the trigger might start running before the configuration is completed.