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

how to implement pop up window when records gets created through backend using trigger

Hi Devs,

I have requirement  which goes like this ,
There is a site which inserts custom objects and then  opportunity records gets created using trigger . Now Business wants to show a pop up window (notification) to all user as soon as the opportunity records gets inserted  and that pop up should have a button for user to take ownership of that record . 
Is it implementable ? Can we notify user using pop up screen ?
Khan AnasKhan Anas (Salesforce Developers) 
Hi Sanju,

I trust you are doing very well.

You can't display an alert from a trigger. A trigger doesn't have any direct access to the user interface.

Please refer to the below links with a similar discussion and the possible solution which might help you further with the above issue.

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in future.

Thanks and Regards,
Khan Anas