WhatsApp Send Message-7.309.1740
| SAP Hana Cloud |
Author Arun Kumar(arunk@argos-labs.com) : Sandeep Kumar (sandeepsharma@argos-labs.com) Primary Features WhatsApp send message plugin is used to send a whatsapp message to phone numbers. |
Input (Requirement)
Phone Number ID- Enter the phone number id from meta developer portal.
Access Token- Enter the access token from meta developer portal.
Recipient Phone Number- Enter the Recipient phone number in international format (e.g. 91**********)
Message Type- Select the Type of WhatsApp message to send.
Template Name- Enter the Name of the WhatsApp message template (required when Message Type is template).The default template name is “hello_world”.
Language Code: Enter the language code.
Text Body: Enter the Text message body (required when Message Type is text).
Return Value
Return Value: It will return the output in string format.
Create Credentials from Meta Developer Portal
Note – Create a Facebook account if you don’t have one. Otherwise, you can use your existing Facebook account details to register on the Meta Developer Portal.
1.Open the link in browser- https://developers.facebook.com/
click on get started
click on continue
Enter the verification code which you have received in given mobile number
click on confirm email
click on create app
Enter the app name
click on “create a new one”
Enter the details and click on create portfolio
10.
click on start verification
11.
Select app and then click on next
12.
13.
click on create app
14.
Enter the facebook account password
15.
click on customize
16.
click on generate access token
17.
18.
19.
20.
21.
Enter the phone number
22.
Enter the verification code
23.
copy the generate access token and phone number id.
Parameter setting examples (diagrams)
1.Message Type - template
2.Message Type – text
Note - Send a message to the test number (e.g., +1 555 632 8860) first. After the user initiates the conversation, you can send text messages within WhatsApp’s 24-hour session window.
Return Code
Code | Meaning |
0 | Execution successful |
99 | Execution failed |