Can we notify users using a pop up window when a opportunity is being created in backend through a trigger ? The popup should appear irrespective of which tab the user is in .
There are a few options:
- The simple one (strongly recommended): in your trigger create a chatter post for that user. Browser (or mobile) notifications will take care of the popup. When browser notifications are integrated into the OS you even get them on OS level
- Add a Lightning control everywhere (lots of work) that subscribed to a platform event created in the trigger and then uses the lightning notification library
- Build a small Heroku app that listens to the platform events and then pushes a browser notification. Same effect as first option, it just doesn’t leave a trace
Guessing here: the chatter post look like what you want. It not only notifies, but also documents the fact. Now there are a few scenarios: notify an individual or a group. In the later case you need to subscribe your users to that group.
Hope that helps