Quantcast
Channel: Support Portal
Viewing all articles
Browse latest Browse all 2278

Script Master - 5: How to send custom SMS notifications to users

$
0
0

Hello folks,


Do you guys remember the Script Master's post about sending custom email notifications? In case you've missed it, you can visit the post here. Today's Script Master's post will help you send custom SMS notifications to users through SMS gateways.

To demonstrate, I've preferred the Clickatell SMS gateway in this post.

How it works:

The SMS is sent using the Clickatell SMS API along with an authorization token, against an existing account. In the application, you can use either Request Custom Triggers, Request Custom Menu or Change Custom Triggers to send SMS notifications.

Clickatell SMS API:

Refer the below documents to know more about the Clickatell SMS API. 


https://archive.clickatell.com/developers/api-docs/using-the-rest-api-rest/

https://archive.clickatell.com/developers/api-docs/send-message-rest/


Lets assume a high priority ticket is created and you want to notify the SME's immediately through SMS. The SMS has the priority of the ticket, the time of ticket creation and the requester's name.The python script to send the notification is available here.

Execution steps:


1.Copy the script into the custom script folder in the  \Manageengine\ServiceDesk\integration  directory.

 

2.Configure the phone numbers, the sender name and the message content in the script by following the comments that are provided inline.

 

3.Configure the script under the Admin -> Custom Triggers. Provide $COMPLETE_JSON_FILE as the parameter to the script.


Below is a screenshot showing a sample configuration.




Note:

      1.  This script was tested on python v3.4.1 - 32 bit.

      2. A python library called 'Requests' is necessary to run this script on the application server.

      3.  This script can be used in  ServiceDesk Plus version 9039 or above.


To make the best use of this, take a look at the comments section in the script and the related posts in our resources section.


Trust you find this post useful. In case you've missed the previous posts, visit here . Try them and send your feedback to us as comments to the respective posts. Advance Christmas and New Year wishes to all our dear users on behalf of ManageEngine. The next Script Master's post will be posted in the first week of Jan, 2017. Until then, happy holidays.


Viewing all articles
Browse latest Browse all 2278

Trending Articles