I have created a custom create button since we cannot define a lookup value with an action. I have created the button, but when I go to test it states that the URL no longer exists. I copied the url from the standard create button:


My custom button:

&00N1500000CxftK="Being Worked"

After I select the record type I get the error:

Invalid Page Redirection The page you attempted to access has been blocked due to a redirection to an outside website or an improperly coded link or button. Please contact your salesforce.com Administrator for assistance. For more information, see Insufficient Privileges Errors.


3 Answers 3


I think there is == in save_new_url==%2F{Quotes_RFR.Id} make it single =.

And use URLENCODE function for substitution.

&save_new_url=/{!URLENCODE (Quotes_RFR.Id)}
&retURL=/{!URLENCODE (Opportunity.Id)}
  • I changed it as indicated, but I am getting the error message:Error: Field Quotes_RFR.Id does not exist. Check spelling.
    – Michelle
    Mar 28, 2017 at 15:43
  • @Michelle, Probably because you are not using proper field name.
    – Raul
    Mar 28, 2017 at 15:46
  • It is my custom object that I am trying to create off of the opportunity
    – Michelle
    Mar 28, 2017 at 15:49

In past, had faced similar issues due to encoding of parameters, without which URL becomes invalid as error message suggests.

Should use URLENCODE for all the parameters.



After much research and trial and error this worked /setup/ui/recordtypeselect.jsp?ent=01I150000017oVu &save_new_url=a03/e &retURL={!Opportunity.Id} &CF00N1500000HvjMd={!Opportunity.OwnerFullName} &CF00N1500000HvjMd_lkid={!User.Full_Name__c} &CF00N1500000CxfPc={!Opportunity.Name} &CF00N1500000Cxfq6={!Opportunity.Sales_Support_Contact__c} &00N1500000Cxfsc={!Opportunity.Date_Received__c} &00N1500000Cxfrg={!Opportunity.Date_Due__c}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .