1

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 .

2
  • 1
    I don't think so. How about sending an email to the user. You may achieve that by a workflow.
    – S..
    Commented Sep 18, 2018 at 10:34
  • Since mail is related to another app . It would be difficult for user to keep tracking mails while they work in salesforce . Business needs something within salesforce application to get notifications .
    – Sancool
    Commented Sep 20, 2018 at 6:38

1 Answer 1

2

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

6
  • another option: rest post to slack channel (user) and let slack handle the notifications; esp if org isn't using chatter
    – cropredy
    Commented Sep 19, 2018 at 22:21
  • Even if an org isn’t actively using Chatter, it will still notify the user. No need for an extra external
    – stwissel
    Commented Sep 20, 2018 at 0:19
  • hmm -- never thought of that - good point
    – cropredy
    Commented Sep 20, 2018 at 0:40
  • @Sancool You are welcome. Feel free to accept the answer
    – stwissel
    Commented Sep 20, 2018 at 6:40
  • Hi Stwissel , Thanks for solution ,but I do want to clarify about chatter post solution, even if the chatter post created for the user /group , the user wont be getting notified through brower pop up , it just post in chatter tab and tags that user/group .( Tested from my side ) - Let me knw if there is any configuration setting need to be done to recieve pop up notification using chatter in sf The only way to get notification from chatter is by using external chatter app (which is business is not keen as there are large number of users and installations would be overhead)
    – Sancool
    Commented Sep 20, 2018 at 6:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .