Formula Fields for Calculation

Your first use of formula fields tracks the age of a Position posting with a simple calculation.

1.
Return to the main page for the Position object and click New in the Custom Fields & Relationships section.
2.
Select Formula as the data type and click Next to bring up the page shown below. You define the basic attributes of the formula field on this page.
Figure 56. Defining a formula
3.
Enter Days Since Posting in the Field Label field and select Number as the return type for the formula since this formula returns the number of days since the position was posted. Set the number of Decimal ...

Get The Developer’s Guide to the Force.com Platform now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.