function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
DougWDDougWD 

Problems with special characters in a Custom Button URL

Hi,

 

I've searched around without luck.

 

I'd like to create a custom button for a contact that automatically dials the contact numbers using RingCentral.

 

The Ring Central format is:

 

https://service.ringcentral.com/ringout.asp?cmd=call&username=8889363711&ext=101&password=1234&

to=6505551230&from=6505551231&clid=8889363711&prompt=1

 

I've put in a custom field in user that contains the correct info for the following: 

username=8889363711&ext=101&password=1234&from=6505551231&clid=8889363711&prompt=1

 

and created a custom URL button for accounts defined as:
https://service.ringcentral.com/ringout.asp?cmd=call{!User.Ring_Central_CallOut_Code__c} &to={!Contact.Phone}

 

The problem is that when this implements, it changes all of the special characters to escape sequences, for example:

https://service.ringcentral.com/ringout.asp?cmd=call%26username%3D8889363711%26ext%3D501%26password%3D1234%26from%3D6505551231%26clid%3D8889363711%26prompt%3D0%20&to=(610)+555-1212

 

I'd appreciate any help in this.  Thanks!

 

Doug 

 



 

 

gtuerkgtuerk
why don't you use a vf page and a page controller, redirect to that page and create the url with merge fields in the controller?  that way you could control the encoding