function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ramesh SomalagariRamesh Somalagari 

How to send sms via twilio api

I have install the "twilio" api in salesforce and I have register twilio phone number. How to receive the SMS details and how revert back the conformation.Which class should be call and where should I give the accoutsid,authosid and twilio phone number in Installed Package from Sandbox .
Hi Ramesh, 

See the link below,

Ramesh SomalagariRamesh Somalagari
Cool. I have found the solution in Stack Over Flow  click this link.

I have already implemented it Please visit

Sandeep Singhal
Vadivel MuruganVadivel Murugan

I want to perform this task without Twilio. if any one know please reply to me.
Palak SinghalPalak Singhal
Hello Mr. Vadivel Murugan
With 360 SMS App you can perform the same task effortlessly and efficiently. For detailed information, please visit:
Anindya ChattopadhyayAnindya Chattopadhyay

Hi Sandeep:

I reckon using API will be much easir now. Isn't it?


ValueText SMSValueText SMS
I suggest you to read below limitations before you start integrating any Texting Gateway at Salesforce.

"Twilio consume 1 API call for  1 SMS".

If you want to send 200 SMS in bulk dataloader update you have to make 200 API calls which is not recommended.
You can build future calls to handle to make API calls, but that won't be a good process.

Install ValueText SMS ( app which is cheap and easy to use.
  • 1 API call to send messages up to 40K.
  • You can send SMS from Workflow or process builder like Email.
  • You can create an SMS template so easily like text email template.
  • You need not to edit apex code every time if there is a change in SMS template.
  • Real Time Status of Message
  • Single or Bulk SMS
  • SMS from List View
  • Send SMS from custom or standard object
There are more advanced options you can find.


ValueText SMSValueText SMS
In 3 ways you can send SMS from Salesforce.
In every option, you have pros and cons and choose based on your criteria.

1. Salesforce default SMS sending
A. Cost wise very expensive in case of messages and App.
B.Some places you have to put your development efforts to make the process automatic.
C. Support only 5 countries for now

2. Integrate SMS gateway.
N number of gateways in online where you can choose and integrate.
A. SMS prices are low.
A. If you want to send SMS to different countries Integration is not a good option because
International SMS gateway can not give SMS at local Price.
B. You have to put your development efforts for dynamic message creation in triggers.
C. You have to invest your money and time on every SMS template creation.
D. For introducing one new template you need spend the minimum time of 2 hr including development, deployment

3. You can find App in AppExchange.
A.There are a few apps in AppExhnage which are providing complete automation.
B. No development efforts.
C. Like Email template, you can create SMS template.
D. You can send SMS with a workflow where you need not to write triggers.
E. it takes 1 min to introduce one new template

If your option is 3 ? You can have a look at our ValueText SMS ( App ( at AppExchange.
Your comment is awaiting moderation.
Jaci CohenJaci Cohen
send sms via twilio api is very tough but sending sms thorugh mTalkz sms API ( is very easy. Easy to integrate and ead easy to use, affordable cost.