Go to documentation repository
The MsgToString method converts the MsgObject objects (including the Event static object) into a String variable.
Syntax for method invocation:
function MsgToString() : String
There are no method arguments.
Example. Send messages about all events registered for microphone 1 to a specified email address.
Note
The Short Messages Service must be installed and work properly.
if (Event.SourceType == "OLXA_LINE" && Event.SourceId == "1") { var msgstr = Event.MsgToString(); DoReactStr("MAIL_MESSAGE", "1", "SEND", "subject<Microphone 1>,body<" + msgstr + ">"); DoReactStr("MAIL_MESSAGE", "1", "SEND", ""); }