logo

NJP

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

Import · Sep 06, 2020 · article

Hi Developers,

In last few articles in this series we have learnt how to setup the Twilio, how to configure Twilio with ServiceNow Notify and how to setup Notify. And 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 .

image

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 :

image

Step 3) Click 'Test Callbacks'

image

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 .

image

Your screen will now look somewhat like this :

image

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

image

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 :

image

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

image

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 .

image

Now your window will look somewhat like this :

image

And you will receive a text message from from Twilio :

image

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

image

Step 9) Observe the callback test results.

image

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.

View original source

https://www.servicenow.com/community/developer-articles/testing-notify-twilio-integration-how-to-read-the-docs-twilio/ta-p/2321274