Tag Apex Trigger

Mention multiple users in the chatter post using Apex

The article explains how to post a chatter from Apex code and how to mention multiple users in the post. It describes a solution using an Apex Trigger and ConnectApi for notifying 'Account Reviewer' users about changes in Account ownership. The method ensures that all mentioned users are from the old and new owner regions.

Subscribe Platform Event in Lightning Component

The post details a method to display a warning message on Salesforce, suggesting fields to complete or correct to improve contact data quality. The solution involves creating a "Platform Event," an Apex Trigger, and a Lightning component in Salesforce. Apex Trigger publishes an event which the Lightning component subscribes to. Upon receiving an event message, the Lightning component sends a warning message to the user.