Unable to Receive the SMS via twilio

后端 未结 2 1508
不知归路
不知归路 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.

    0 讨论(0)
  • 2021-01-07 08:02

    The first thing you should do is to login to the Twilio console, go to Devtools | App Monitor, and see what Twilio thinks is happening.

    The most likely problem is that Twilio is getting a 404 error when it tries to access your Visualforce page. You must add the page to a Force.com Site for it to be publicly visible. A quick test is to just paste your Visualforce page URL into the browser and try to view it - you should see the 'Twilio Request Listener' page block.

    To make the page visible, create a Force.com Site (if you have not already done so), then, on the Site configuration, add the Visualforce page to the Site Visualforce Pages list. You should now be able to see the page in the browser, and Twilio should be able to access it.

    0 讨论(0)
提交回复
热议问题