7
votes
Date in RFC2822 to Apex DateTime?
I'm not aware of any standard way to parse this, but here's a quick method to do it:
Map<String, String> months = new Map<String, String>
{
'Jan' => '01',
'Feb' => '02',
...
7
votes
REST API Unicode characters not working
I've been able to reproduce this in a test environment using Workbench. It appears that Salesforce by default interprets text in the body of a request with Content-Type: application/x-www-form-...
5
votes
Accepted
How to setup Salesforce Identity Provider to work with Twilio Flex
To setup Salesforce Idenity Provider to work with Twilio Flex you need to complete these steps:
Create an self-signed certificate
Enable Salesforce Identity Provider
Create Twilio Flex Connected App
...
4
votes
Help converting this cUrl to Apex?
It'd probably be best if you started as a String array:
// ...
String[] payloadParts = new String[0];
String[] toBindings = new String[] { '{"address": "+18005551212", "binding_type": "sms"}', '{"...
2
votes
Accepted
Twilio/Apex: receiving messages through a controller
Steps to setup a public facing API
Goto sites and setup a public site
https://help.salesforce.com/HTViewHelpDoc?id=sites_setup_overview.htm&language=en_US
Create a sample vf page and add the ...
2
votes
Accepted
Twilio StatusCallback - Post Method implementation
Here is an example of a class doing that update using the callback URL:
https://github.com/britishboyindc/TextToCase_Twilio_Salesforce/blob/master/src/classes/smsResponse.cls
@RestResource(urlMapping=...
2
votes
Accepted
Twilio salesforce integration error while sending SMS more than 160 char
Salesforce isn't restricting the character limit. Try sending to '/Messages' instead of '/SMS/Messages'. This should allow up to 1600 characters.
https://www.twilio.com/docs/api/messaging/message
2
votes
Accepted
REST Endpoint Domain Mismatch in Managed Package
Thanks @Avijit and @freaker87, I appreciate the response. I have figured out (through trial and error) how to fix it, though I don't really understand the reason.
The error I was getting was the same ...
2
votes
Help converting this cUrl to Apex?
A request bin service can be helpful in showing exactly what curl generates for the outbound body content. The curl manpage is also helpful:
--data-urlencode
(HTTP) This posts data, similar to the ...
2
votes
Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null') at input location [1,2]
A 3xx status code is a redirect. You should be able to immediately try again with the new location:
try {
Http http = new Http();
HttpResponse res = http.send(req);
System.debug(res....
2
votes
Accepted
Salesforce CTI softphone screenpop not working
This was fixed by right-clicking on the Chrome Reload button and selecting:
Empty Cache and Hard Reload
1
vote
Accepted
Can I receive a Twilio http POST webhook as Salesforce Integration User?
Create a PlatformEventSubscriberConfig for your Apex Trigger firing the Platform Events.
Make sure to use the User field to set the necessary user context. Also while deploying it make sure to ...
1
vote
Accepted
How can I mock Twilio's Apex callout to send a SMS?
When you have Twilio's package installed in your org you are able to access the accessible methods from the classes through the developer console. The methods are exposed as global, with no meaningful ...
1
vote
Accepted
Salesforce Outbound call (Click To Dial) using Twilio Flex
Finally I am able to make outbound calls form salesforce by Click To Dial/Dial Pad using Twilio Flex. To solve the console error
Error: outbound calling disabled
and make the outbound call working, ...
1
vote
how to Send sms with a url using twilio?
Try to use BitlyService to shorten url. No need to use EncodingUtil.urlEncode for parameters. I have implemented and it is working fine for me.
BitlyService bitly=new BitlyService();
string ...
1
vote
Open CTI Call Centers vs. Lightning utility bar component
Main disadvantage here is configurations that you need to configure record pages/layouts for each of profile while Call Centers/Open CTI gives ability to setup it once in utility bar.
Also Open CTI ...
1
vote
how to track the status of twilio sms status in custom object with status as sent in salesforce?
You're overwriting all the incoming data on your REST request.
RestRequest requ = new RestRequest();
RestResponse resp = new RestResponse();
RestContext.request = requ;
...
1
vote
Accepted
Conditional in <response> tag in VisualforcePage
You need apex:outputpanel and rendered condition to make it work.
<apex:outputpanel layout="none" rendered="{!Number == '1'}">
<Response>
<Say>Hello</Say> ...
1
vote
Accepted
Alphabetical sender id is not sending SMS by Twilio in Salesforce
As per the Twilio Support, twilio-salesforce helper library is unfortunately out-dated,thus it will not support the alphanumeric sender Id functionality.
But what you can do instead is use direct ...
1
vote
Accepted
Unable to send SMS by Twilo integration in salesforce
Please check out this link
SMS Error
You are using a trial account which means your from number should be +15005550006 and to number should be your verified number(the number you want send SMS to)
...
1
vote
Twilio access Token issue
Although you did not post your actual rqeuest code, the error is quiet clear from the response.
A) The error code returned is 20404 - Twilio API usually returns this error when a resource is not ...
1
vote
twilio smsToLead HTML element error
I got your point what you have done has put some extra code before <apex:page> tag which is not allowed in VF page. As you cann't write anything before <apex:page> and after </apex:page&...
1
vote
Twilio StatusCallback - Post Method implementation
Please find this SO link with a detailed explanation. Hope this helps.
If you specify a StatusCallback URL when you make the request to send an SMS, Twilio will make a request to the callback URL you ...
1
vote
System.QueryException: List has more than 1 row for assignment to SObject3
Without knowing what line it's on, I can only guess but my assumption is that it's on your Profile query. If you are going to assign it to an SObject instance, you need to make sure you limit your ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
twilio × 58apex × 26
integration × 7
rest-api × 6
opencti × 5
visualforce × 4
lightning × 4
api × 4
lightning-aura-components × 3
apexrest × 3
sms × 3
cti × 3
httppost × 3
trigger × 2
unit-test × 2
salesforcedx × 2
callout × 2
error × 2
rest × 2
url × 2
marketing-cloud × 1
ampscript × 1
managed-package × 1
batch × 1
visual-workflow × 1