O'Reilly logo

The Developer’s Guide to the Force.com Platform by Phil Choi, Andrew Fawcett, Glen Martin, Rick Greenwald

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required