From wiki.ginstr.com
Revision as of 14:57, 12 July 2017 by Mark (talk | contribs) (formatting)
Jump to: navigation, search

gn:act_smsSend

Description
Action used to send an SMS message to multiple recipients.
Action returns
boolean

Action signatures

Send SMS

[gn:act_smsSend]|[to{n}, message{n}, repeat, timeout, successMessage{n}, failMessage{n}]
Parameter Description
to{n} source from where the value for recipient phone number will be used
message{n} source from where the value for SMS message will be used
repeat number which represents a number of SMS sending repetitions
timeout time in miliseconds which will be used as timeout between SMS sending repetitions
successMessage{n} source from where the value for the success message will be used
failMessage{n} source from where the value for the fail message will be used

Example

@variable/alert_resident_smsForAlerts - recipient phone number
@+id/alert_phone_serialNumber; ;@+id/emptySpace; ;@variable/alert_resident_firstName; ;@+id/emptySpace; ;@variable/alert_resident_lastName - SMS message
5 - number of repetitions
30000 - timeout
@+id/resident_alertConfirmationMessage - success message
@string/alerting_alertingFailedMessage1 - fail message
[gn:act_smsSend]|[@variable/alert_resident_smsForAlerts,@+id/alert_phone_serialNumber; ;@+id/emptySpace; ;@variable/alert_resident_firstName; ;@+id/emptySpace; ;@variable/alert_resident_lastName, 5, 30000, @+id/resident_alertConfirmationMessage, @string/alerting_alertingFailedMessage1]