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
Lakshmi SLakshmi S 

Redirecting to related object record using standard functionality ?

Hi Team,

We have a process on opportunity for creating the record in related object based on criteria.
My requirement is after creating the record in opportunity, if the criteria match related object record created using process.We need to redirect the standard detail page from opportunity to related object record detail page.

Please let  me know , how can we do this...

Thanks in advance.
Regards
Lakshmi.
Meenu MathewMeenu Mathew
Hi Lakshmi,

As per the scenario you explained, the opportunity creation can be done not only manually but also by creating bulk records using dataloader or Apex Class. Then there arise a case of confusion as off where to redirect the opportunity, since bulk related records get created. This cannot be done using process.

Thanks
 
Lakshmi SLakshmi S
Hi Mathew,

Thanks for you reply.
We have a child object for opportunity, using process builder we are creating the record in child object based on criteria at time of creating record in parent object. we need to redirect the page from parent to child record detail page. (without visualforce page). Is there any standard functionality.

Please let me know...

Thanks,
Lakshmi.
Meenu MathewMeenu Mathew
Hi Lakshmi,

I don't think there is any standard functionality.
I tried it with trigger, but  by the order of execution in salesforce, Trigger gets executed first before Process builder. 
So it wasn't possible. Maybe if you remove the process builder and do the record creation also using code then you may able to do it.
https://developer.salesforce.com/forums/ForumsMain?id=906F00000008xYXIAY
https://salesforce.stackexchange.com/questions/36311/redirect-after-a-new-record-is-save-from-trigger

Thanks