I was searching Twilio integration with salesforce on the web but didn't find any, so am posting this a simple POC of sending SMS to the mobile using Twilio from the Salesforce UI.
Its simple but just you need to do something extra two make this functionality working.
We will go step by step for this
First of all create a new account on Twilio click here
Twilio will provide you a number, via which it will sent you SMS.
Now login to your salesforce account and create a Remote Site Setting.
In Remote Site URL enter https://api.twilio.com, like shown below
And then create a custom setting named as Twilio Configuration.
We are gonna use them in our apex classes.
Create fields on the custom setting you've just created, with same API name as below shown.
Now we need to provide some values to the fields ofthe custom setting click on Manage button shown above.
Before entering any values to the fields click on these links
For Auth Token and Account SID Click Here
For Test Credetials i.e. Test Account SID and Test Auth Token Click Here
For Account Name enter the name from which you registered like your email id.
For From Phone Number enter that number which got when you created account on Twilio.
After that save your custom setting.
Custom Setting should look something like this
After that you can save the code provided here GitHub
Page will look something like this
See that was a piece of cake :)
Hope everything works just fine.
Happy coding..!!!
We will go step by step for this
First of all create a new account on Twilio click here
Twilio will provide you a number, via which it will sent you SMS.
Now login to your salesforce account and create a Remote Site Setting.
In Remote Site URL enter https://api.twilio.com, like shown below
And then create a custom setting named as Twilio Configuration.
We are gonna use them in our apex classes.
Create fields on the custom setting you've just created, with same API name as below shown.
Now we need to provide some values to the fields ofthe custom setting click on Manage button shown above.
Before entering any values to the fields click on these links
For Auth Token and Account SID Click Here
For Test Credetials i.e. Test Account SID and Test Auth Token Click Here
For Account Name enter the name from which you registered like your email id.
For From Phone Number enter that number which got when you created account on Twilio.
After that save your custom setting.
Custom Setting should look something like this
After that you can save the code provided here GitHub
Page will look something like this
Hope everything works just fine.
Happy coding..!!!