Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

Trigger.new vs trigger.newmap - what's the difference?

Asked by Dipesh Bhardwaj May 1, 2023 1.1K views 1 answer
Share

About this question

I am really confused between these two.I know the theoretical differences between these like if you have the id then only you can use trigger.newmap and trigger.newmap returns an unordered list... Leaving before insert we can use trigger.new and trigger.newmap both in after insert, after update and before update... So please clear my doubt: in which scenarios should I use trigger.new/trigger.newmap?

Your answer

1 Answer

More Salesforce discussions

Learn & Explore

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

Latest Salesforce Blogs

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