Official Content

The SendSMS method offered by the Interop external object enables opening the SMS native application, filling the message fields with the parameter's values and sending it.

InteropSendSMSMethod

The following steps show an example of how this feature is used.

Step 1

Create a new Panel object.

Step 2

Define a variable based on the Phone domain (for example &To) and a variable based on the VarChar(200) type (for example &message).

Step 3

Add the variables and a button to the Panel Layout.

Step 4

Define the event associated with the button as follows:

Event 'Send'
    Interop.SendSMS(&to, &Message)
EndEvent

Done! The entry Panel will accept a phone number and a msg and when the Send button is tapped the SMS native application will be invoked. 

SendSMSPic1

sendSMSPic2

Last update: November 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant