I've been going through the inbound sms activity documentation but there isnt much insight on how to actually query or iterate through the insms table, not sure if I understand the activity's purpose, can someone shed some light on how to configure it? what actually goes in the script section? do I have to write a querydef on the inbound sms table and then process the results?
Thanks for replying, WoodNick have you got a sample script that processes inbound keywords? I mean I can write a custom js script that queries the insms table and does post-processing, but In this case, I am not sure how this script is expecting us to do the processing? whats the first step?
The script lets you process the message and perform various operations that depend on the content of the message. The script is executed for each message and can determine the operation to be performed on messages (leave or delete the message) and activation of the outbound transition.
The return code must be one of the following values:
1 - Deletes the message from the server and activates the outbound transition.
2 - Leaves the message on the server and activates the outbound transition.
3 - Deletes the message from the server.
4 - Leaves the message on the server.
The content of the message is accessible from the global mailMessage variable.