You need to sign in to do that
Don't have an account?
URL Encoding issues
Hello,
I need some help with the following. I have been able to successfully set up a page redirect but I am having issues with th url. The url takes me to the correct page but it adds 25 in certain places which prevents me from moving to the next page. Below you will see the proper url (1) and the url that is being sent from my button(2)...I have also posted my code that creates the url.
1. correct URL
https://tapp0.salesforce.com/setup/ui/recordtypeselect.jsp?ent=01IT000000058Gq&retURL=0064000000EkBjTAAV&save_new_url=%2Fa0s%2Fe%3FCF00NT0000001GcgE%3DELESLIE%2BE%2BSCHMIDTKE%2B-%2BAuto%26CF00NT0000001GcgE_lkid%3D0064000000EkBjTAAV%26retURL%3D%252F0064000000EkBjTAAV
2. being passed by button
https://tapp0.salesforce.com/setup/ui/recordtypeselect.jsp?ent=01IT000000058Gq&retURL=0064000000EkBjTAAV&save_new_url=%252Fa0s%252Fe%253FCF00NT0000001GcgE%253DELESLIE%2BE%2BSCHMIDTKE%2B-%2BAuto%2526CF00NT0000001GcgE_lkid%253D0064000000EkBjTAAV%2526retURL%253D%252F0064000000EkBjTAAV
3.Apex Class coding
public PageReference ServiceNotifications() { String strUrl= 'https://tapp0.salesforce.com/setup/ui/recordtypeselect.jsp?ent=01IT000000058Gq&retURL=' + policy.Id + '&save_new_url=%2Fa0s%2Fe%3FCF00NT0000001GcgE%3DE' + EncodingUtil.urlEncode(policy.Name, 'UTF-8') + '%26CF00NT0000001GcgE_lkid%3D' + policy.Id + '%26retURL%3D%2F' + policy.Id; PageReference pageRef = new PageReference(strURL); pageRef.setRedirect(true); return pageRef; }
ANY help would be greatly appreciated. I feel I am so very close but just missing something.
FYI Seems the 25's are being added starting after the 'save_new_url' section.
Thank You Dwayne