Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Elizabeth Clark

Elizabeth Clark

Community Learner
Share
15Questions
14Answers
20.4KViews on questions

What is this keyword?

Sometimes a function or method will need to refer to the object that invoked it. 'this' keyword can be used inside any method to refer to the current object. Example :- box(double width, double height, double depth){ this.width= width; this.height=height; this.depth=depth; }

Salesforce

Answered Feb 10, 2020 · 1.1K Views Read answer →

How to prevent duplicate creation of accounts using triggers ?

trigger AccountDuplicateTrigger on Account (before insert, before update) { map account map = new map(); for(account acc : trigger.new){ if((acc.name!=null) && (trigger.isinsert || (acc.name!= trigger.oldmap.get(acc.id).name))){ if(accountmap.containsKey(acc.Name)){ acc.name.adderror(‘account name already exists’);…

Salesforce

Answered Jan 2, 2020 · 1.1K Views Read answer →

More members from the Salesforce community

Learners asking and answering questions on the same topics — follow their questions and join in.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.