- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
on 02-01-2022 02:08 PM
Introduction
In this article I would like to show you how you can integrate ServiceNowand Pushover. In my case I use it to send push-notification to iOS devices whenever a Incident becomes priority 1 or 2.
About Pushover
Pushover makes it easy to get real-time notifications on your Android, iPhone, iPad, and Desktop (Android Wear and Apple Watch, too!)
With pushover you can create notifications with different priorities. It is also possible to create “emergency” notification which bypass the dnd or focus mode (iOS) and requires an acknowledgement from the recipient
Pushover can send 10.000 messages per month per user free.
Getting started with pushover
Creating a delivery group
1. Go to https://pushover.net and create your account.
2. Create a delivery group (e.g. Operations Team)

3. Save your Group key

4. Install Pushover app on your mobile device and signin
5. Goto Settings and notedown your User-Key
6. Add your User-Key to the delivery group you created before
Creating an application
1. Create an Application

2. Add Application details like name, url and icon

3. Note down your Application API Token

Send a test notification
Select your delivery group and your application to send a test notification

On my iOS device:

Getting started with ServiceNow
Using Pushover API -> API Documentation
You can download importable XML files on my GitHub account -> https://github.com/Ma91Wa/ServiceNow-Pushover
Creating a REST Message
1. In ServiceNow goto: System Web Services -> Outbound -> REST Message
2. Create a New REST Message “Pushover” with endpoint: https://api.pushover.net/1/messages.json

Set a HTTP Header in HTTP Request tab to Content-Type application/json

3. Edit the “Default GET” HTTP Method

4. Rename it to “post” and change HTTP method to “POST”

5. In “HTTP Request” Tab add a json to content

{
“token”: “${token}”,
“user”: “${user}”,
“message”: “${message}”,
“title”: “${title}”,
“url”: “${url}”,
“url_title”: “${url_title}”,
“priority”: “${priority}”,
“retry”: “${retry}”,
“expire”: “${expire}”
}
6. click on “Auto-generate variables”

7. Add test values to the variables
token = YOUR APPLICATION KEY FROM PUSHOVER
user = YOUR GROUP KEY FROM PUSHOVER

8. click on Test


Creating Business Rules
Open System Definition -> Business Rules
You need to create two business rules to trigger push notification on incident table

Create “Incident Priority Pushover (Create)”


Create “Incident Priority Pushover (Update)”


Do not forget to change token, user and url in both scripts
Testing functionality
If you are finish you can create some incidents and try to change the priotiy to see what happend
Use Flow instead of Business Rule
You could also use a Flow instead of a business rule. Business rules could have impact on system performance
- 834 Views