function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SarbashishSarbashish 

Redirect from one Object to another Object

I want to copy one record from one object to another object. When I copy the record from first object to second object, it should redirect me to the record's details page of the second object.
How can I redirect using S-Control??


Nazeer AhamedNazeer Ahamed
This redirect to Account tab, 

window.parent.location.href="{! urlFor( $Action.Account.Tab , $ObjectType.Account,null,true)}";

For more details lookup Help & Training with "window.parent.location"
SarbashishSarbashish
I am copying a record from my Custom Object "Marketing" to Lead Object. So how can I redirect to that record's detail page in lead object ( like redirecting from lead to Account after lead conversion) ??