SMS services are used to define SMS service integrations when the emakin system wants to send SMS messages.
Messages are tried to be sent through all SMS services in the service order until any of the SMS services returns a non-null value and not error.
Is Enabled
Specify whether the service is enabled or not.
Name
Name of service to identity.
SMS Gateway Code
Integration script for SMS service call. Script content may vary depending on service definition but as an example the following script can be used;
var client = $Rest.Create('http://mysmsservice'); var request = client.Request('send'); request.AddObject({ To : $Destination, Text : $Message }); var reply = request.ExecuteJson(); if (!reply.IsSucceed) throw new Error('SMS send failed');