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
Vinay JVinay J 

Open newly created record in edit mode on standard save

Hi,

I have a trigger which creates a new record in the same object based on some criteria. I'm using standard object tab. The requirement is, as soon as user click on save for existing record, and a new record is created by trigger, user should be redirected to the new record in edit mode. Is it possible?

Thanks,
Vinay
Best Answer chosen by Vinay J
Shashikant SharmaShashikant Sharma
No you can not navigate from the trigger.

But this could be possible if you are on a VFP when the criteria for new record is satisfied. In this case you could query the database to get new records id and navigateto it.

If you are at native page layout and criteria is satisfied on saving of it then it is not possible.