Wednesday 8 May 2013


Field History Tracking

Field history tracking provides an audit trail of changes to one or more fields of your
objects.This audit trail is accessible in the native user interface by adding a special related
list to your page layout and also in your own custom code. No user can remove or edit
entries in the audit trail, not even a system administrator.
To get started with field history tracking, follow these steps:
1. Go to your custom object’s definition page and click the Edit button.
2. In the Optional Features section, selectTrack Field History and click the Save button.
3. Click the Set HistoryTracking button in the Custom Fields & Relationships section.
4. Check off the fields you would like to track.Your screen should resemble what’s
shown in Figure 4-8.You can track up to 25 fields per object.You cannot track the
history of formula, roll-up summary, or auto-number fields.
5. Edit the page layout for your object and add the related list corresponding to your
object’s history.
6. To test, find a record to change in your object. Edit the value of one of the fields
you’ve enabled field history tracking on.When the edit is complete, notice that the
field history related list contains the details, as shown in Figure 4-9.This field history
related list cannot be customized, but you can create your own custom user interface
for viewing field history using Visualforce.

No comments:

Post a Comment