O'Reilly logo

Visualforce Development Cookbook by Keir Bowden

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

Retrieving content from Salesforce

Force.com sites allow unauthenticated visitors access to custom (and some standard) Salesforce sObjects. While providing public access to data stored in Salesforce might seem like a security risk, it is a perfect fit for dynamically generated website content; content authors don't need to know how to edit Visualforce pages in order to be able to update the content of the site.

In this recipe we will create a Visualforce page that renders content from the three most recently edited records of a custom sObject. We will then make this page publicly available via an unauthenticated Force.com site.

Getting ready

This recipe requires that you have already completed the Creating a site recipe, as it relies on the custom ...

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