+ Start a Discussion
mavsmavs 

retURL issue on standard Objects

Hi

 

on clicking a custom link from Account, i am trying to create contact. It first opens a new contact window and passes in accountId parameter along with retURL parameter. after the contact record is saved i am redirecting it to a document (you can see retURL )

 

parent.frames.location.replace("/003/e?accid={!Account.Id}&retURL=%2Fservlet%2Fservlet.Integration?lid=01H400000000hT9")

 

for some reason, after the contact record is saved i am redirecting to the newly created record. When it should have been redirected to the document, since the ret URL is coded for.

 

 

Can someone please advise what is wrong with the above code? why it is not redirecting to the document???? Please Advise

 

 

Thanks

mavsmavs

Hi there

 

 Please advise..

 

 

Thanks

pierreeymard@saaspointpierreeymard@saaspoint

Hi,

retURL is only used for Cancel, you need to add saveURL , as in 

...&saveURL=%2F{!whateverID}

 

Pierre Eymard

pierre.eymard@saaspoint.com

Saaspoint

London, UK