Allows the user to send messages in whatsapp by using the connector associated with that. MessageBird is used as a connector to send the whatsapp message to the configured whatsapp no.
Smart code
Syntax
SendWhatsapp(Connector,Mobile No,Message)
Parameters
- Connector (Required) – Select the connector from the predefined connector.
- Message (Required) – Defines a message that needs to send to Whatsapp.
Direct Code
Syntax
try {
var mobileno = await Orefuncs.GetValue(“<<Control_Name>>”, this.state)
await Orefuncs.SendWhatsapp(“Connector_Name”, mobileno, Orefuncs.OreDataValidate(await Orefuncs.GetValue(“<<Control_Name>>”, this.state))).then((response) => {
if(response == undefined || response.status == false){
this.setState({ spinner: false });
return;
}
})
}
catch(ex) {
OreAlert.alert(ex.message);
}
this.setState({ spinner: false });