No members are added since the on-call rota isn’t defined on the selected group. - Twilio

Robert_Anderson
Tera Expert

Hey all,

 

I am trying to Send SMS via Related Links within the Incident form. When trying to select a group to send the SMS to I am getting an error "No members are added since the on-call rota isn’t defined on the selected group."

Is there anyway to send this SMS to a group that isn't part of an on-call rotation, we would like to use this to send an SMS to Upper Management when an outage occurs.

 

Thank you,

3 REPLIES 3

kps sumanth
Mega Guru

Hello @Robert_Anderson ,

 

Can you try below code in your UI action.

var notify = new SNC.Notify();
var twilio = gs.getProperty('glide.notify.task.phone_number');
notify.sendSMS(twilio, Phone, Message, current);
 
Where twilio will be the number used to send SMS from servicenow, Phone will the number to which SMS has to send(make sure it is having correct country code as well), Message will be your message in string format.

Please mark this to Accepted and Helpful if this worked for you.
Thanks and Regards,
Kps Sumanth.

Hello,

 

I have tried the above and I am still getting the same error message.

 

SMS2.PNG

 

Ideally, I would like to suggest the group, have the names populate, and be able to send the SMS without having to set them up in an on-call rota.

Sean Witt
Tera Guru

There is a system property called "com.snc.notify.default.add_all_members_on_no_rota_defined". At least in my Personal Developer Instance, that property defaults to false. But if I change it to true, it will then add all group members even without On Call being installed/configured (example below😞

 

SeanWitt_0-1730910425606.png