Skip to main content
27 votes

Bell notifications via apex

From Winter 2021 you will be able to send notifications directly using apex. The below code works with winter 2021 and later. Id typeId = [SELECT Id FROM CUstomNotificationType WHERE DeveloperName = '...
Rahul Gawale's user avatar
  • 12.2k
18 votes

Bell notifications via apex

You can definitely send Bell Notifications via apex. Andrew Fawcett explained this feature in detail in his article https://andyinthecloud.com/2019/06/30/getting-your-users-attention-with-custom-...
Eduard's user avatar
  • 5,181
12 votes
Accepted

ShowToastEvent notification is not displayed in LWC

As you can see here platformShoToastEvent can only be used in Lightning Experience explicitly. Since standard toasts are based on Appliacation Events there is nothing to handle your event in Lightning ...
Bartosz Śliwiński's user avatar
8 votes
Accepted

Custom Notification Recipients to New Places with Page Reference Navigation

It seems that targetPageRef is expecting lightning pageReference types in a string format, so if you pass the otherwise json as a string, like the following: "{"type": "...
zigzig's user avatar
  • 96
8 votes
Accepted

Retrieve standard and custom notifications of a user in Apex

Unfortunately, no. The endpoint you're using seems exactly what you want/need - but, as you noted, will only give you custom notifications. You can see this older question that mentions the lack of ...
Kris Goncalves's user avatar
7 votes

Bell notifications via apex

You can achieve the bell notification through the new Summer '19 Custom Notifications feature however, it's not triggerable via APEX just yet. I know this doesn't directly answer the question re: APEX,...
GeorgeBT's user avatar
  • 301
6 votes

Bell Notifications Lightning Components

You should be able to use lightning:icon in your component, as follows: <lightning:icon iconName="utility:notification" /> This is also in the standard SLDS library if you're using the static ...
sfdcfox's user avatar
  • 497k
6 votes

How to add listener for toast notifications?

Yes, you can get the toast information, as it is an application event, and thus propagates to all interested listeners. Here's the code I wrote that demonstrates this: <aura:component implements="...
sfdcfox's user avatar
  • 497k
6 votes
Accepted

Cannot get notifications on records that I follow

To receive a Lightning notification for posts to records that do not tag you explicitly (@[Itai Shmida]), you need to create a Chatter Stream and add the records to it. Then, you can configure the ...
David Reed's user avatar
  • 93.2k
6 votes

Bell icon in communities: syntax of the setTargetPageRef string?

I could see it working (outside of Communities, I have not tried that part yet) with the following scenarios: Named Page Type (type = standard__namedPage): quite limited but useful. Item Page Type (...
Jeferson Chaves's user avatar
6 votes
Accepted

Cannot handle OpenDirect push notification when iOS app is not launched

SFMCSdk.mp.setURLHandlingDelegate(self) should be set only after successful initialization of the SDK. For opendirect, when app is not in launched state, the SDK instance will be lost and hence when ...
Prakashini Pattabiraman's user avatar
5 votes
Accepted

Bell Notifications Lightning Components

UPDATE: Since Winter 17 forceCommunity:notifications https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/aura_compref_forceCommunity_notifications.htm#! Finally, I found that ...
ransommule's user avatar
5 votes
Accepted

Bell notifications via apex

I am not sure if it is the best approach, but I had a situation very close of that. I needed to create a notification for an user linked with a Case. List<FeedItem> FeedItemList = New List&...
m Peixoto's user avatar
  • 1,098
5 votes
Accepted

What is the name of this OOB notification method/popup, and is it customizable?

The subscriber-customizable version of this feature is called In-App Guidance: From Setup in Lightning Experience, enter In-App Guidance in the Quick Find box, and then select In-App Guidance. ...
Thomas Taylor's user avatar
5 votes
Accepted

Can we query Custom Notifications sent to a user or channel?

You could probably use GET method in Salesforce Action REST API. I don't think there is any other way currently. https://developer.salesforce.com/docs/atlas.en-us.api_action.meta/api_action/...
Szosteczka's user avatar
4 votes
Accepted

Custom Notifications not working on BatchApexErrorEvents

The hint given by Chris Peterson in the comment helped me solve it. It was the userId used in notification.send(userId); It was set to UserInfo.getUserId() which in the context of the ...
Robert Sösemann's user avatar
3 votes

How to create lightning notification?

According to the documentation, you receive a notification for approval requests or if mentioned in a Chatter posts. You can most likely create a notification by using the process builder to post to ...
Gareth Jordan's user avatar
3 votes
Accepted

How to disable Case Notification Email

That's found in Setup > Customize > Cases > Support Settings. The "Notify Case Owners when Case Ownership Changes" controls ownership notifications, and "Notify Case Owner of New Case Comments" is for ...
sfdcfox's user avatar
  • 497k
3 votes
Accepted

When Changing an Opportunity Owner can an email notification be mandatory?

This is actually an idea 'Under Product Team Review' and there seems to be fairly strong support for it so I hope this will be implemented in future as a native feature. The idea is generic so it ...
Gaurav Kheterpal's user avatar
3 votes

Send push notification to mobile from lightning app

Actually, the question is about sending push notification from a Lightning app. The provided link is for native and hybrid mobile apps (not Lightning apps or Lightning pages). To clarify, Lightning ...
Gaurav Kheterpal's user avatar
3 votes

Display Exception message in toast when calling Apex using @wire

With @wire, you can provide a method instead: @track accounts = []; @wire(loadAccounts) wireAccountLoaded({data, error}) { if(data) { this.accounts = data; } else { this....
sfdcfox's user avatar
  • 497k
3 votes
Accepted

Notification push from External System

Your external system once done processing has to call Salesforce and tell that process is done. One way I can see is using customNotificationAction. They also have a rest endpoint that can be called ...
Pranay Jaiswal's user avatar
3 votes
Accepted

Is it Possible to Add Email Addresses to the Notification Settings of an Automation via the API?

The answer is NO. There is no way to add an email to the notification settings of an automation. Actually, there is an option in the Soap request on the help page that "normally" adds this parameter,...
Rachid Mamai's user avatar
  • 4,741
3 votes
Accepted

Dispatch Event or Apex Call is not working in LWC Callback

It looks like the this context is lost inside messagecallback function and it generates an error while dispatching the event. Try binding the this context by changing to subscribe('/event/...
manjit5190's user avatar
  • 8,043
3 votes
Accepted

Types of notification that I can use in APEX

This isn't a notification, it's an In App Guidance. You can create your own and trigger them in various ways. You can monitor which of your users have viewed these IAGs, and more. To have more than ...
3 votes
Accepted

Send email alert when opportunity stage equals 'closed lost'

your issue is that you have created the email alert, but it is not used in any workflow rule. You need to add it to the field update as an immediate action. On your third screen click edit and follow ...
Oleksandr Berehovskyi's user avatar
2 votes

Send push notification to mobile from lightning app

Yes, Yes it is. There are two ways of doing this. First, is to use the Marketing Cloud's JB4A SDK for either Android or IOS. The second is to use the core platform's push notification features. I ...
Kevin P's user avatar
  • 7,258
2 votes

Is there a way to avoid sending duplicate email alerts?

I used a "Set a condition" event at the start of my workflow. It checks the "Created By" field in the List Item against the "Manager" field in the List Item. I put a notification in the "YES" result ...
Dotcomaphobe's user avatar
2 votes
Accepted

Notification on configuration changes in "Profile"

You can't get notifications for changes to profiles. However, you can view the Setup Audit Trail to view any changes for the past 180 days. This is generally outlined in Monitor Setup Changes. Setup ...
sfdcfox's user avatar
  • 497k
2 votes
Accepted

CLI Data Loader Failure notification

When running data loader from the command line you are running an app that is using the Salesforce API to write data to Salesforce. If you want email notification on failures, the way to do that ...
pchittum's user avatar
  • 19.8k

Only top scored, non community-wiki answers of a minimum length are eligible