Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Learning Force.com Application Development
  • Table Of Contents Toc
Learning Force.com Application Development

Learning Force.com Application Development

By : Madusanka
4.3 (4)
close
close
Learning Force.com Application Development

Learning Force.com Application Development

4.3 (4)
By: Madusanka

Overview of this book

If you are a developer who wants to learn how to develop and deploy applications from the Salesforce.com platform, then this book is for you. No prior knowledge of Salesforce is necessary.
Table of Contents (15 chapters)
close
close
14
Index

Triggers


As you learned in the previous section, Apex code can be used to write classes or triggers. A trigger is an Apex script that executes when a data manipulation language (DML) event occurs on a specific sObject. Therefore, triggers are directly bound with the records of a particular sObject. If the particular record is affected, then the related trigger will be executed:

  • The record is accessed via the standard page or Visualforce page

  • The record is accessed via a web services API

Triggers can be created on any custom or top-level standard object. There are four types of DML events that affect a trigger of a particular object:

  1. Insert

  2. Update

  3. Delete

  4. Undelete

The preceding DML events can be executed either before or after the event. You can specify that in the trigger defining:

  • before: Before triggers can update variable values before they are saved to the database.

  • after: After triggers can access field values that are set automatically (such as ID or last updated fields) or to affect changes...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Learning Force.com Application Development
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon