Posts

Showing posts from September, 2021

Custom Notifications aka Bell Notifications from the Apex code.

Image
The Messaging.CustomNotification class allows you to create, configure, and send custom notifications using Apex code. Here is a basic outline of how you can create and send a custom notification from an Apex trigger: Create a Custom Notification Type : In the Setup, you should create a Custom Notification Type. This defines the type of notification you will be sending from Apex. Use CustomNotification Class : Once you set up your Custom Notification Type, you can craft your Apex code to create the notification. Here's an example code snippet: // Get the Id for our custom notification type CustomNotificationType notificationType = [SELECT Id, DeveloperName FROM CustomNotificationType WHERE DeveloperName='Lead_Due_Diligence_Completed']; Messaging.CustomNotification notification = new Messaging.CustomNotification();  notification.setTitle('Your Notification Title');  notification.setBody('This is the detail of the notification');  notification.setNotification...

Salesforce Experience Cloud and Salesforce Sites

Image
Salesforce Experience Cloud (formerly known as Salesforce Community Cloud) and Salesforce Sites are both platforms provided by Salesforce for external-facing applications, but they serve different purposes and have distinct features.  Setting up - Salesforce Sites Experience Cloud Here's a comparison between the two: Purpose : Salesforce Experience Cloud : This platform is designed for creating branded online communities, portals, and websites where organizations can engage with customers, partners, and employees. Experience Cloud allows you to build custom-branded sites with features like discussion forums, knowledge bases, and access to Salesforce data. Salesforce Sites: Salesforce Sites, on the other hand, is a platform for creating public-facing websites or web applications that are directly integrated with Salesforce data. Sites are typically used for customer-facing portals, self-service support sites, or custom web applications that leverage Salesforce data and functional...