From wiki.ginstr.com
Jump to: navigation, search
m (formatting)
m (Example)
Line 52: Line 52:
 
:<code>@+id/resident_alertConfirmationMessage</code> - success message<br>
 
:<code>@+id/resident_alertConfirmationMessage</code> - success message<br>
 
:<code>@string/alerting_alertingFailedMessage1</code> - fail message<br>
 
:<code>@string/alerting_alertingFailedMessage1</code> - fail message<br>
:; ⤷ <code>[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]</code>
+
:; ⤷ <code><nowiki>[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]</nowiki></code>
 
<hr>
 
<hr>

Revision as of 14:31, 12 July 2017

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]