Unable to Receive the SMS via twilio

后端 未结 2 1509
不知归路
不知归路 2021-01-07 07:04

I have twilio phone number,Visual force page and Controller.I have reference Document I have followed.I send an sms via twilio but unable to receive the sms. Customer Send

2条回答
  •  臣服心动
    2021-01-07 07:40

    Finally I have created a Case while Customer Sent an SMS twilio Phone number.

    Steps:

    • After installing Twilio in Sandbox, we need to create a Visualforce page and one Controller as specified.
    • Create a Force.com Site and add your Visualforce page to your site. Then give the site url(https://sandbox.force.com/sms).

    Path :Setup > Developer > "New" Site Url

    Note : The Site Url and Twilio Account SMS Url must and should be same other wise the HTTP post request will not post to your Visualforce page. Twilio Account SMS Request URL

    • Give the Site access to the Controller and the Case Object. From the Site detail page, click Public Access Settings to visit the Site's guest user profile. Enable Read and Edit access on the Case Object. Add the controller Apex Class to the Enabled Apex Class Access list.
    • Create a Remote Site Settings in Sandbox i.e Endpoint Url for the Twilio API.

    Path :Setup > Administer > Security Controls > Remote Site Settings > "New Remote Site" End point Url

    Then send an SMS to your Twilio phone number. It will create a new case in the Sandbox. It is amazing concept of Twilio API for the Salesforce.

提交回复
热议问题