on 09-14-2019 12:21 PM
Twilio SMS and Voice activate speedy on-call scheduling, incident alerts. Notify allows you to integrate with telephony providers such as the Twilio service to manage phone calls and SMS messages from within your instance.
Here I have implemented a functionality where you can trigger a Conference call and SMS when any P1 Incident is created. Also you can explicitly trigger a call with call the assignment group members by clicking Phone Icon.
Twilio Configuration Needed:
ServiceNow Configuration Needed:
You will see below window after initiating a conference call to group members. You can find all call related information in Notify Conference Calls Module.
System Property: This system properties will have SysID of Notify number to use for group conference calls.
Script Include: This script include will have a code for triggering a conference call. This script will be called from UI Macros. This script will find group member/ conference call participents, sys_id of conference call number of property groupconfcall.number and set up the outbound calls for all conference call participants.
Dictionary Override: Create a dictionary override for Assignment group field and add following attribute: ref_contributions=group_conf_call. This is used for calling a UI Macro which displays Phone Icon.
Done!!! You are ready to test your functionality. You can deploy attached update set your instance.
References:
1. https://docs.servicenow.com/bundle/madrid-servicenow-platform/page/product/notify2/concept/c_Notify2...
2. https://developer.servicenow.com/app.do#!/api_doc?v=newyork&id=r_N-call_S_S_GR
3. https://www.twilio.com/docs/all
Thanks for reading and do comment with your suggestion/improvements if any.
Hope you will find it as helpful. Don’t forget to Mark it Helpful and Bookmark article so you can easily find on your profile.
Thank you,
Abhishek Gardade
Really helpful article, keep it up Abhishek !!
Thank You Ajay!!!!!
Hey,
Twilio Configuration Needed:
3.Also, In order to receive a call/SMS, you need to Add your mobile number or callers mobile number in Verified Called IDs and need to verify it.
Have verified it with my number but it doesn't show.
Have verified it with my number but it doesn't show. Its fine right??
You must need to verify your number in twilio in order to work.
I am actually checking in my personal instance 1st whether it will work or not. Can you please tell whether the email id should be same of personal instance and twilio account
I have a doubt here, Sorry for the trouble. Since i just started Servicenow i am having lots of doubts.
This process is not automated right..?? I have to manually on click call button for the callto happen . But I want as soon as an incident is created the call should go to the person so that he can acknowledge.
I have done that. will check again.
You can make a call as soon as incident raised. For that you can after INSERT Business rule to trigger a call when incident is created. I have provided option to call manually by clicking Call ICon.
Thanks,
Abhishek
Its not necessary to have same email id.
So, Configuration of Twilio is not required for this right??
Directly write a business rule??
yes we require Twilio integration and as a part of configuring serviceNow in order to use Tiwlio API, we need to write business rule.
Just go through the links provided.
When adding or removing Twilio numbers you need to "Disconnect" and reconnect Twilio adding the Twilio username and password again. Then verify.
Hi Abhishek
I want to know how we can verify user mobile phone numbers in Twilio if there are many users (say 10000) in servicenow.
Is there any self verify feature available to use?
or anything else that would help in verifying users in bulk.
Regards
Himanshu
Hello Himansh,
We have implemented this as POC and verified few numbers only. There are some twilio phone Verification APIs and SDK available. You can have a look at Twilio docs which specify how we can verify numbers at scale.
https://www.twilio.com/docs/voice/api/verifying-caller-ids-scale
Thank you,
Abhishek Gardade
Hi Abhishek
Thanks for the reply..
I checked and i was informed that we don't require to verify phone numbers in the non-trial account.
Also, if you have any REST message to send an outbound SMS, pls. share.
Thanks in advance
Regards,
Himanshu