You need to sign in to do that
Don't have an account?

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 force.com 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 ?
I have requirement which goes like this ,
There is a force.com 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 ?
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.
https://stackoverflow.com/questions/11595574/display-alert-box-through-the-trigger-salesforce
https://salesforce.stackexchange.com/questions/23656/how-to-display-a-message-when-the-trigger-finishes
https://salesforce.stackexchange.com/questions/63660/confirmation-box-in-apex-code-invoke-by-a-trigger
https://salesforce.stackexchange.com/questions/119887/can-we-display-warning-message-from-trigger
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