Day 10: Salesforce Custom Notifications #TexeiAdventCalendar

By

3 minutes de lecture

It’s the most wonderful time of the year! And with that ladies and gentlemen comes the most wonderful blog posts from the most wonderful #TexeiAdventCalendar. So let’s delve into the Salesforce custom notifications!

I always got this complaint from many customers: “We want to be notified once a specific action happens in Salesforce” I’m not talking here about the standard Salesforce notifications like a change of ownership or a due task but rather any other custom action: It could be a new lead created via web to lead, an opportunity of a college that is getting near the win. Anything that ca comes to mind.

How to create custom notifications

So, in order to solve this, Salesforce has recently put forth the possibility to create custom notifications. It’s very simple, first we have to create the notification itself.

We can find it under “Custom Notification” in the setup menu.

Salesforce custom notifications

Once we hit new, we will give it a name and we can choose if it’s available for Desktop, Mobile or both.

So, all is good now but how we can use this new notification you may ask? Well, we can simply use it in a process builder. Let’s say we want to create a notification if we have a new lead created from the web so our entry criteria would be the creation of a lead with the value “Web” in the Lead Source field.

We create the process builder as usual with the entry criteria and in the action section, we choose “Send custom Notification”. We give it a name.

And now we can choose who’s going to receive our notification.

Let’s say that we can’t notify the owner of the lead that we have assigned via an assignment rule.

Here we will type our notification title and body and good news, we can use Merge fields.

So now if a new web lead is created, the owner will receive a shiny message.

We click on the notification and here we go!

As simple as that!

And don’t forget that we can also use custom notifications in more complex scenarios using flows. We add an action to a flow, and we choose notifications. But this is a story for another day!

To learn more

On top of all that, you can even send custom notifications via Apex but for this, I’ll let Loic NICOLAS walk you through that very soon so keep an eye on this space!

Hope you enjoyed our little snippet of wisdom about Salesforce custom notifications. Don’t forget to tune in tomorrow for a brand new #TexeiAdventCalendar post with Jérémy VIAL. And if you enjoyed that, we have more right here: Texei

Merry Christmas and keep on rocking!

Follow us on LinkedIn here and on Twitter here

Read more posts

Enforce code standards with PMD

Developers working on a project usually set coding rules to have a standardized codebase. It is an important piece of the code maintainability, and it can be very easy …
March 2023
Advices
Scratch orgs

Uncovering Salesforce Settings: A Step-by-Step Guide for Scratch Orgs

Today, it’s pretty easy to build your Scratch Org definition file when you know what Settings you want to activate, as they are mapped with the same setting names …
February 2023
Advices
Business Analyst

Core qualities of a Business Analyst?

A common definition we are used to hear is that being a Business Analyst means to have a combination of both hard skills and soft skills. What does a …
June 2022
Advices
Image d'illustration d'une employée travaillant sur un ordinateur portable

Process builder and workflow make way to Flows (½)

Overview “If you can do it with a Workflow, then do it with a Process Builder, because everything a Workflow does, a Process Builder does it better”. If you …
March 2022
Advices

Day 22 : Salesforce new “Migrate To Flow tool” in Spring 22

As most of you already know, the workflow rules and process builders are planned to be retired in 2023 (no precise date defined so far). Today, I’m going to …
December 2021
Advices

Day 18 : Fake callout responses for test classes !

Hello everybody ! Today let’s talk about Apex tests classes in Salesforce. Everyone loves a good test class, and Salesforce makes it official by requiring to have a minimum …
December 2021
Advices