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 to be able to edit Visualforce pages in order 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 domain ...
Get Visualforce Development Cookbook - Second Edition 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.