+ Start a Discussion

Problem with retURL

I have requirement where im passing some values through an url to create a record of an custom object(lets assume this custom object as X).
After saving the record i want to redirect to a record of another custom object(ie. Y) which has X in its related list.
Im able to redirect to the edit page of X but after saving it is not getting redirected to Y record.Im using retURL but it does not seems to be working.
Im using the following code.Here reRecId is the Id of the Y object record.
Can any one tell me whats wrong in my code.
I tried replacing %2F with '/' but it was of no use.
Any help will be appreciated.
Thanks in Advance.
I have tried to do something similar (see here) without any success.  It seems that if you pass in the retURL to a page, it gets overwritten by Salesforce somewhere along the way.

Thanks for your reply.

Is there any work around for this.

Any pointers will be of great help.

Greg HGreg H
Try passing "&save_new_url=" in the URL.  I think this will get you what you want.