Author name: Himanshu

Add Active Admin Users to Group

When a new active user with the “System Administrator” profile is created, this trigger automatically adds them to the “Admins” public group, streamlining group membership management. Explore similar automation examples via this YouTube playlist. Solution: trigger UserTrigger on User (after insert) {            if(Trigger.isInsert){            if(Trigger.isAfter){   

Add Active Admin Users to Group Read More »

Set Lead Source and Fields for Healthcare Industry

This trigger updates specific fields (Lead Source, SIC Code, and Primary) for Leads in the Healthcare industry when their records are updated. It enforces industry-specific field values and improves data consistency. For more practice scenarios, explore this YouTube playlist. Solution: trigger LeadTrigger on Lead (before update) {       if(Trigger.isBefore && Trigger.isUpdate) {     

Set Lead Source and Fields for Healthcare Industry Read More »

Detailed Interview Questions and Answers

1.What is Salesforce Apex Programming Language? Apex is Salesforce’s proprietary programming language designed to execute transactional and complex business logic directly on Salesforce servers. It supports Object-Oriented Programming principles, runs in a multitenant environment, and is optimized for the Salesforce CRM platform. Key Features:▪ Built-in DML (Data Manipulation Language) for database operations.▪ Supports exception handling

Detailed Interview Questions and Answers Read More »

2. Whenever a Lead record is updated, set the Lead Status to Working-Contacted.

Solution: trigger LeadTrigger on Lead (before update) {      if(Trigger.isBefore && Trigger.isUpdate) {          for (Lead leadRec : Trigger.NEW) {               leadRec.Status = ‘Working-Contacted’ ;               }      } }  

2. Whenever a Lead record is updated, set the Lead Status to Working-Contacted. Read More »

Shopping Cart

Let's get you started!

Interested in writing Salesforce Content?

Fill in this form and we will get in touch with you :)