Trigger Scenario Based Questions in Salesforce
In this blog series, I have tried to cover trigger scenario-based questions that are often asked from a Salesforce developer in an interview.
And a few scenarios from my personal experience 😀
Trigger Scenario 1 :
Whenever Opportunity "Stage" is modified to "Closed Won" then set "Close Date" as "Today Date" and "Type" as "New Customer".
Whenever Opportunity "Stage" is modified to "Closed Won" then set "Close Date" as "Today Date" and "Type" as "New Customer".
Trigger Scenario 2 :
Creates the number of contacts which are equal to the number which we will enter in the Number of Locations field on the Account Object.
Creates the number of contacts which are equal to the number which we will enter in the Number of Locations field on the Account Object.
Create Custom field called “Number of Locations” on the Account Object (Data Type=Number)
Trigger Scenario 3 :
When ever Lead is created with LeadSource as Web then give rating as cold otherwise hot.
When ever Lead is created with LeadSource as Web then give rating as cold otherwise hot.
Trigger Scenario 4 :
When ever new contact is creating check for duplicates. If duplicates are found then don't create contact record
When ever new contact is creating check for duplicates. If duplicates are found then don't create contact record
Trigger Scenario 5 :
When ever the Account is created with Industry as Banking then create a contact for account, Contact Lastname as Account name and contact phone as account phone.
When ever the Account is created with Industry as Banking then create a contact for account, Contact Lastname as Account name and contact phone as account phone.
Comments
Post a Comment