Skip to main content
The 2024 Developer Survey results are live! See the results
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', ...
IllusiveBrian's user avatar
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-...
David Reed's user avatar
  • 93.2k
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 ...
Robs's user avatar
  • 9,406
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"}', '{"...
sfdcfox's user avatar
  • 497k
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
salesforce-hacker's user avatar
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 ...
PatMcClellan__c's user avatar
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 ...
David Reed's user avatar
  • 93.2k
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....
sfdcfox's user avatar
  • 497k
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
Robs's user avatar
  • 9,406
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 ...
Mohith Shrivastava's user avatar
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 ...
Renato Oliveira's user avatar
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, ...
Md. Abdur Razzak's user avatar
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 ...
Dhanik Lal Sahni's user avatar
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 ...
pklachkou's user avatar
  • 797
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; ...
David Reed's user avatar
  • 93.2k
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> ...
Tushar Sharma's user avatar
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 ...
Amol's user avatar
  • 673
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) ...
RedDevil's user avatar
  • 7,841
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 ...
Gaurav Kheterpal's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible