Sunday, September 6, 2020

Testing Notify-Twilio Integration - How to read the Docs - Twilio Part 4

 Hi Developers,

In last few articles in this series we have learnt how to setup the Twiliohow to configure Twilio with ServiceNow Notify and how to setup NotifyAnd as we have already discussed, it's always better and equally important to test your integration and configurations before proceeding forward with the development.

All the information for Twilio-Direct callback testing is available at ServiceNow Docs.

We will be making an outgoing call & will be sending an SMS using Twilio and trigger callbacks to ServiceNow to test whether Twilio can reach the instance.

Step 1) Navigate to Notify > Administration > Twilio Direct Configuration.

Step 2) Click 'here' in the Info Message 'This record is in the Twilio Direct Driver application, but Global is the current application. To edit this record click here.' to change the application scope.

The screen will look somewhat like below :

Step 3) Click 'Test Callbacks'

Step 4) Fill the 'To' field with your mobile number, let the Test type as 'Call' and leave the Message field as is. Click Initiate Test Call.

Your screen will now look somewhat like this :

And you will recieve a voice call from Twilio number on your mobile number specified in 'To' field :

Step 5) You can also view when the last callback test was run, its status, and the test logs. Click 'View logs' in the success message 'Callback test successful. View logs for more details.'

Your screen will look somewhat like this :

Step 6) Open the recent test record and observe the details.

Step 7) Now let us test the SMS, In Step 4, Change the Test type as 'SMS', fill the 'To' field with your mobile number and leave the Message field as is. Click Initiate Test SMS.

Now your window will look somewhat like this :

And you will receive a text message from from Twilio :

Step 8) Click 'View logs' in the success message 'Callback test successful. View logs for more details.'  and open the recent test record.

Step 9) Observe the callback test results.

If our tests are successful, that means we are good to proceed. If you get any kind of error, please mention it in comments or post a question to community, we would love to help.

An important points to remember here is, The callbacks can be tested only after a connection is established with Twilio.

So far we have everything we need to start development. In the next post we will be discussing how to make use of Twilio functionality on Tasks.

Thank you.

Vishal Ingle

DxSherpa Technologies Pvt. Ltd.

Pune, MH, IN.

No comments:

Post a Comment