This feature requires a license for Development Tools or the CRM Suite Core plan.
Create a trigger
We will now create a series of actions based on the example above.- Go to Settings and maintenance.
- Click CRMScript and select the Triggers tab.
- Click the New trigger (macro) button. The Choose trigger screen displays the available triggers. These are events in the system that can be used to set off actions/macros. In our example we select Request closed, so that the macro is run when a request is closed in SuperOffice.
- Type “request” in the search field and select the trigger called Request closed.
- Enter a description of the trigger in the Description field.
- Select Enabled.
- Select Change a request under Choose action type below. This takes you to the Change a request tab. This is the first action in the macro. It fetches the request, so that the various values (ID, title, contact name and so on) can be used in the next actions we will create.
- Optional: Check Internal message, and enter, for example: “Request closed and confirmation sent to customer.”
- Click Apply.
- Click New action next to the Change a request tab.
- Select Load a reply template for merging. We will now fetch the reply template to be used.
- Click the Reply template field, and select an existing reply template from the list shown, such as “Request closed”.
- Click Apply.
- Click New action, and select Send an email or SMS. We will now adapt the email that will be sent to the customer.
- Check Subject.
- Click to the right, and then click the Choose parameter field.
- Select Change a request > Title. This will put the request title in the subject of the email.
- Check From and select Change a request > Owner.
- Check To and select Change a request > Contact: Email address.
- Check HTML message and select Load a reply template for merging > HTML text.
- Click Apply.