You need to sign in to do that
Don't have an account?

Need to include single quotes in endpoint url
Hi All,
I need to include quotes into the below url. can anyone please help me to solve this.
String i = 'https://test.dev.com?id='1234'';
I need to send that in endpoint url as request.setendpoint(i). While i am doing in this process, single quotes are ,missing in endpoint url.
Thanks
I need to include quotes into the below url. can anyone please help me to solve this.
String i = 'https://test.dev.com?id='1234'';
I need to send that in endpoint url as request.setendpoint(i). While i am doing in this process, single quotes are ,missing in endpoint url.
Thanks
You have to use URLEncode method. Here is the code.