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
pkulkarnipkulkarni 

Calling a new page link from trigger?

I have created a trigger.  After insertion of record i want to show message on new page "record added successfuly" and that page should be called from trigger. How to achieve this?

Vinita_SFDCVinita_SFDC

Hello,

In apex you can write :

apexpages.Message msg = new Apexpages.Message(ApexPages.Severity.Info,'One record inserted');

apexpages.addmessage(msg);

In VF you can show this message with <apex:messages/>