SMS alternate in Notification

shuguang2
Kilo Expert

Hi, has anybody used SMS alternate field & actually get it working?
I have configured this field in a Notification definition and configured a device that should receive SMS from this notification. A notification is actually created with the content of this SMS alternate field as Subject and my mobile device as the recipient. See attachment.

However the SMS I received is without any content. I expected to receive the email subject as SMS. What I see is that in the header definition section, the subject is empty. Anybody knows why is that, where can I change it to get the header subject filled?

Thanks a lot for advices!

Shuguang

13 REPLIES 13

hartr
Giga Contributor

Can you let me know how you solved this ? thanks


Hi Russell,



I followed all the steps on wiki.


Created a notification and added the content to the SMS altenate field.


My notification triggers based on the BR, so i added the below condition in the BR.



if(current.company == 'ABC' || current.company == 'CDE'){


  if ((current.operation() == 'insert') || current.priority.changes() || current.incident_state.changesTo('6')|| current.incident_state.changesTo('7')) {


  gs.eventQueue("incident.high", current, gs.getUserID(), SMSId);


  }


}



function getSubscribersSMS(){


  var SMSId = '';


  var gr1 = new GlideRecord('cmn_notif_device');


  gr1.addQuery('user', gs.getUserID);


  gr1.addQuery('type', 'SMS');


  gr1.addQuery('active', true);


  gr1.query();


  if (gr1.next()) {


  SMSId = gr1.email_address;


  }


  return SMSId;


}






Once the BR and Notification is configured, I went ahead and added a Particular user to that notification and in the same User Record, I created a a different notification device and kept the type as SMS and then entered the Phone No and Service Provider.



After doing the above step , I went ahead and clicked on the Notification Preferences and the new device which I had created is now available, so i went ahead and added my notification for the same and saved.



Hope this helps.



Best Regards,


NJ


Hi Namrata,



Im trying to configure the sms notification..but we can directly have this done by using filter condition on the notification also right?



Thansk,


Sowmya


Hi Sowmya,



If you need to send only to one person it is not a problem.



But if its groups of people , then rather than hardcoding it Dynamic BR is good.



Best Regards,


NJ


Hi Namratha,

Any idea on if the SMS can be sent to the users who are not using USA carriers?

Thanks