Send SMS Activity
- Last UpdatedJul 01, 2024
- 4 minute read
Activity description:
The SendSMS Activity can be used to send SMS to a selected number of actor(s) and/or to a specified phone number. The actor(s) can be selected by building a query. The workflow engine evaluates this query and sends an SMS to all the actors resulting from the query.
Activity Properties:
The SendSMS activity has to be configured by specifying appropriate values for the different properties in the Activity Properties area. The Activity Properties can be accessed by clicking on the Activity Properties tool in the tool bar or by selecting the appropriate option from the right-click menu for the SendSMS activity. The Activity Properties are organized under the following groups of related properties. The properties under each group are described in this topic

Note: In scenarios where different resource providers like Active Directory, Forms, List and ASP.NET Membership are used for different repositories, the resource fields like Email-Id, Mobile Provider, and Mobile No used for SMS configurations should have same field name across all resource providers. For example, let's say fields like Email, Mobile phone provider and SMS Number is used in Active Director provider as Email-Id, Mobile Provider, and Mobile No respectively, then In Forms provider/SkeltaList provider/ASP.NET membership provider also should have these fields like Email-Id, Mobile Provider, and Mobile No to support SMS functionality.
Name & Description
The properties in the Name & Description group have been described below. You can use these properties to specify the name and description for the activity.
Name - This property can be used to specify a name for the activity.
Property Type: Optional (This property needs to be set only if necessary.)
Description - This property specifies a brief description to be displayed for the activity.
Property Type: Optional (This property needs to be set only if necessary.)
Notification Contents
The properties in the Notification Contents group have been described below. You can use these properties to specify the content of the notification.
Sender - This property is used to set the sender's phone number.
Property Type: Optional (This property needs to be set only if required.)
RecipientResource - This property is used to build a query for selecting the resources for sending SMS. The phone number of the resource will be taken from the resource table. The phone number fields should be configured in the CommunicationConfig.xml.
Property Type: Mandatory (This property alternates with the 'Recipient' property. One of these properties must be set if the SMS is to be sent to any resource(s).)
Steps to set the RecipientResource property
-
To specify the actors to receive the SMS, click on the button for the 'RecipientResource' property to open the property window.
-
In this window build an expression to select the actors using the resource properties. Select an attribute from the first drop down list, then select the operator, type of value (Value, Variable, Content, XMLVariables), and the corresponding value for the property from the corresponding drop downs. Select "End" from the last drop down to complete the expression. If you are building a compound expression, you can select one of the logical operators to connect the different conditions that form the expression.
-
Add the condition to the expression by clicking Add. This will display the expression to the text area.
-
You can remove a condition already added to the expression by clicking Undo.
-
You can also clear an existing expression if necessary by clicking Clear. This is useful if you want to clear large expressions in the text area in order to build a new expression.
-
After building the expression, click Update to save it.
See Send SMS: RecipientResource for a detailed description of the RecipientResource property window.
Recipient - This property is used to specify any Phone Number for sending the SMS.
Property Type: Mandatory (This property alternates with the 'RecipientResource' property. One of these properties must be set if the SMS is to be sent to any resource(s).)
Message - This property is used to enter the message of the SMS.
Property Type: Mandatory (This property needs to be set.)
Steps to set the Message property
-
To specify the message, click the button for the 'Message' property to open the property window.
-
In this window, enter the message text directly in the text editor.
-
If you want to customize the message you can do so using the Field controls to add resource property values.
-
Click Append add the expression to the text editor.
-
You can manipulate the text using the appropriate tools from the tool bar. You can cut, copy and paste text, undo and redo changes, zoom in and zoom out the view as well as print the text.
-
You can format the text, if necessary, using the formatting tools. You can make text bold or italic or change the font or size, set text color or background color.
-
After adding the subject, click Update to save it.
-
Click Close to close the window without saving the message.
See Send SMS: Message for a detailed description of the Message property window.
Retry - This property allows the user to enable the activity to retry up to three times if the first attempt to execute fails. By default it is set to "Yes."
Property Type: Optional (This property needs to be set.)
Activity outputs:
The SendSMS Activity does not return any value.
Exception Behavior
Each activity has the Raise Error on Unhandled Linked Output property on click of which, it shows all the default configured mapped error outputs in red with their check boxes selected.
See Mapped Error Output for more details.
Note: Setting value for Set Variables and Contents from SMS property in Wait for SMS activity, through XML variable is not supported.