![]() ![]() Out of the box there are three templated scenarios that we must use:Įxplore these different scenarios using their test harness. We can now continue in the wizard to explore One-Way Messaging. ![]() Once we have sent the code to the Twilio contact, we will receive an acknowledgement in our WhatsApp client and we will see a Message Received! Confirmation on the Twilio website. We subsequently need to send a code to enroll in the process. To complete the wizard, we need to have an existing WhatsApp account and need to add a Twilio phone number to our contacts. We will now work our way through a wizard to create a sandbox that we can use to test the APIs. After making a note of your Account SID, click on the Get Started tutorial.Ĭlick on Programmable Messaging – Try it Out – Try WhatsApp. As part of my trial account, I am provided with an Account SID which I need to copy as I will require it when making API Calls. To see a video walkthrough, please watch this YouTube video.įor the purposes of this post, I am using a trial account from Twilio. In this post we will provide a brief walkthrough of how we can call the Twilio API from Power Automate. Please review their Business Policy here. Note: WhatsApp has very specific requirements on their APIs. However, Twilio provides a messaging API that allows us to make WhatsApp calls from Power Automate. As of this writing, there is no out-of-box connector available for WhatsApp and Power Automate. As a result, it becomes a highly sought after messaging channel for chatbot and automated solutions. You can verify mobile no here.WhatsApp is a popular messaging service owned by Facebook that has more than 1.6 Billion users. If you need to send WhatsApp message to other mobile number then it should be verified first. It will send WhatsApp message to provided number. Provide receiver WhatsApp number and message in valid format. For testing use format which is mentioned in sandbox page.Ĭreate lightning component to send message using above apex class. Body : This is message which will be sent.Use above WhatsApp number which you have configured in sandbox environment. To : This is receiver WhatsApp number.For sandbox environment this number will be +14155238886. From : This is sender WhatsApp number.Sending message will require three parameter. If it is not available be default then click Show API Credentials in right side of the page.Īdd Twilio API Url in Remote Site Setting. Apex need your Twilio account SID and secret token. Integrate Twilio API to send WhatsApp message using Apex. Let us proceed with using twilio API in apex. For testing we can only use 3 highlighted message format. Next step is to send message from your WhatsApp number to verify two way communication.Īfter successful communication, it will show sandbox environment detail. You can select any option to test like ‘Appointment Reminder’, ‘Order Notifications’ and ‘Verification Codes’.īelow screen show, how message will be delivered to your number.Īfter confirming that message is delivered to your WhatsApp number, you can process for next step. In next step, send any message form sandbox environment to your WhatsApp number. Once you send proper message, it will link your WhatsApp number to sandbox environment. For my test environment it is difficult-now. Connection code will be generated automatically and it will be visible on page like in below page with bold character. Setting Sandbox environment is 4 steps process and it will start after above popup is confirmed.įirst Step is to connect sandbox environment with your whatsapp number. Confirm this also as it is for developers for testing Whatsapp messaging.ĭeveloper can test WhatsApp messaging using Sandbox environment. After verification and confirming some information, this popup will show. Verify mobile/phone number to process further. This will open below screen to verify phone number. It will send one verification email to verify email. Signup in Twilio for integrating it with Salesforce application. Steps for Twilio API integration in Salesforce: This blog will provide complete detail about sending WhatsApp message from lightning Application, which i have suggested to my friend. I have suggested to use Twilio API for sending message. One of my friend was having requirement to send WhatsApp from Lightning community portal. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |