Dynamic SOQL and SOSL

As repeatedly emphasized in this book, good Force Platform applications are data-driven. These applications naturally interact with data, even to the point of sometimes changing the user interface based on data values, such as with record types, dependent picklists, or the Visualforce example you will be creating in the next chapter.

All these examples use different data, but rely on a fixed set of data structures. What about those times when you want to go beyond the data structure of a single known object? What if you want to create some functionality that can operate on different objects, depending on application context?

To address this issue, Apex code includes the ability to create SOQL and SOSL statements dynamically, ...

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.