Gridpro AB
Rev: 1.2008.2074 (Azure Stack 2008)
Published: November 2020
What is an Event rule?
An Event rule is the definition of a filtered event that triggers an action in EvOps or an integrated system. These rules can be used to trigger emails, create requests, etc. For some Extensions, predefined Event rules are created automatically when setting up extensions.
Overview
Triggers
It is in the trigger you define Extension and Event that should be triggering the rule.
See the table below for available Extensions and Events:
Extensions |
Events |
EvOps |
· Request created · Request updated · Request deleted |
Notifications |
n/a |
Office 365 |
· New email received · Follow-up email received |
Actions
It is in the action that you define what Extension and Action that should be executed when the Event rule triggers.
See table below for available Extensions and Actions:
Extensions |
Actions |
EvOps |
· Create request · Add comment |
Notifications |
· Send SMTP email |
Office 365 |
· New email received · Follow-up email received |
ServiceNow |
· Incident created · Incident updated |
Webhooks |
· Send Webhook |
Create an Event rule
Please follow the steps below to create an Event rule.
- Open your EvOps account
- Click Event rule tile
- Click New
- Provide a Display name for your template
- Accept or modify the generated unique Name
- Click Define trigger
- Click Extension and select trigger source
- Click Event and select what event to trigger on in selected Extension
- Click Criteria to configure your filter, then click Save
Note: If you leave this not configured, trigger will execute on all selected events - Click OK
- Click Define action
- Click Extension and select action source
- Click Action to select what will happen
- Click Data mappings
- Type in Data mappings snippet for your selected action
- Click Save
- Click OK
- Click OK to save
Samples
This section contains sample Event rules scenarios that will grow over time.
Posting on Microsoft Teams when new request created
This Event rule will create a new request of type Incident when receiving emails.
- Open your EvOps account
- Click Event rules
- Click New
- Type in a Display name
- Accept or modify generated Name
- Click Define trigger then Extension, select EvOps
- Select Request created
- Click Criteria
- Configure criteria according to below screenshot
- Click OK
- Click Define action then Extension, select Webhooks
- Select Send webhook
- Click Data mappings
- Type in Data mappings snippet below, replace <your teams webhooks url> string with your Microsoft Teams url
{
"url": "<your teams webhooks url>",
"payload": {
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"summary": "This is the summary property",
"themeColor": "0075FF",
"sections": [
{
"startGroup": true,
"title": "**Incident**",
"activityTitle": "Incident reported in EvOps",
"activitySubtitle": "By: {{postState.request.requester.email}}",
"facts": [
{
"name": "Date submitted (UTC):",
"value": "{{postState.request.createdDate}}"
},
{
"name": "Details:",
"value": "{{postState.request.description}}"
},
{
"name": "Link:",
"value": "[Link to request]({{portalUrl}})"
}
]
},
{
"startGroup": true,
"activitySubtitle": "This is a sample created for EvOps for Azure Stack. [Learn more](http://www.gridprosoftware.com)"
}
]
}
}
- Click Save
- Click OK
- Click OK to save Event rule
Comments
0 comments
Article is closed for comments.